Answer Posted / vamsikrishnamraju
An outer join operation returns all the rows returned by an
inner join plus all the rows from one table that do not
match any row from the other table. An outer join can be
left, right, or full, depending on whether rows from the
left, right, or both tables are retained
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is syscat in db2?
How do you concatenate the firstname and lastname from emp table to give a complete name?
How to find the number of rows in a db2 table?
What is the result of open cursor statement?
When reorg is used?
define clustering index.
What is the syntax for creating a table in the db2 database?
Why do chiropractors use drop table?
What is the picture clause of null indicator variable?
Explain about mirror activator disk mirroring?
Explain in brief how does db2 determine what lock-size to use?
What is null value in db2?
What is cascading rollback?
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.
How to find schema of a table in db2?