What is meant by union and union all?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More DB2 Interview Questions

what is the soft code for deadlock ?

2 Answers   Logica CMG,


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.

0 Answers  


What is the difference between primary key & unique index ?

6 Answers   Patni, Temenos,


What happens to the PLAN if index used by it is dropped?

1 Answers  


What is the role of data manager in the db2 database?

0 Answers  






Which catalog tables contain authorization information?

1 Answers  


What are the prerogatives?

0 Answers  


Explain the contents that are a part of dclgen.

0 Answers  


what is the role of the cursor in db2?

0 Answers  


can all users have the privilage to use the sql statement select * (dml)?

0 Answers   IBM,


What is a precompiler?

2 Answers  


can any one give the list of some important sql abend codes which r frequently asked in interviews?

2 Answers  


Categories