wht is d/f between union and joins ?
Answers were Sorted based on User's Feedback
Answer / amarnath reddy
use unions, merge the rows from morethan one table.
Ex: select accno.,accname from bank1;
union
select accno.,accname from bank2;
use Joins, merge the columns from morethan one table.
Ex: select i.accno., d.bcode from banktab i, dtlstab d
where i.bcode=d.bcode;
| Is This Answer Correct ? | 4 Yes | 1 No |
What is ibm db2 database?
How to solved 818 error
4 Answers Keane India Ltd, Wipro,
what is the use of cursors?
What are data types?
How Plan is created while executing the query using SPUFI?
What is the SQL Communications Area and what are some of its key fields?
What are the 2 sqlcodes that are returned?
Can we able to find all the Table names under a Particular Plan?
Hi , I am posting some interview ques . what is the use of cursors ? what is the diff between select and cursor ? bith are used for data retrival .. rite?
What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;
How do you leave the cursor open after issuing a COMMIT? (for DB2 2.3 or above only)
Can you tell me how can you find out the # of rows updated after an update statement?