what is the difference between join and union?
Answers were Sorted based on User's Feedback
Answer / s
Join returns only rows that are qualified based on the Join
predicate. Whereas UNION retrieves both result sets above
and below the UNION operator and sorts to remove duplicates
before it returns the First row to the pgm
| Is This Answer Correct ? | 10 Yes | 4 No |
Answer / suresh ramaiyan
Join is used retrive the data from two or more tables.
Union is used to join the result of two queries.
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / lokesh chauhan
Join is used to established a conditional selection from 2
different tables, while union is used to select similar
data based on different conditions.
| Is This Answer Correct ? | 7 Yes | 6 No |
Answer / ananda kumar
join retrive the data more than one table using single sql
query where as union combine the results of two or more sql
queries.
| Is This Answer Correct ? | 2 Yes | 2 No |
wht is d/f b/w inner join and outer join ? d/f group by and order by having by ?
Are views updatable ?
How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ?
What is copy pending and check pending in db2?
Q4. How will you get the count of record without using COUNT verb in query?
What information is contained in a SYSCOPY entry?
if i made sme changes in sub pgm wht r the things to be done for this ?
Which components manage deadlocks in db2?
When the like statement is used?
When one binds a PACKAGE ( of a plan ) what package information is stored and where it is stored?
Say CUST Table contains records like: CUSTNO CUSTNAME CUSTLOC 100 ABC SSS 200 XYZ 300 PQR 400 MNO WWW 500 CVV ------------- ------------- Now write a query to retrieve all records with CUSTLOC no data.
What is release/acquire in bind?