What is subquery ?

Answer Posted / s

Subquery is a SELECT statement used within a WHERE clause
or having CLAUSE of an SQL statment.

Is This Answer Correct ?    26 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we bind in db2?

631


How to compare data between two tables in db2?

658


What is the syntax for FETCH in DB2 ?

673


Is the primary key a clustered index?

608


What is catalog database in db2?

642






Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1897


How to rename a table in DB2 ?

637


What is deadlock in db2?

579


What is db2 bind process?

753


How to create backup table in db2?

640


SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.

2149


How to connect to db2 database from windows command line?

562


How to find the maximum value in a column in the db2 database?

607


Are view updateable?

627


What are db2 objects?

639