
- Forum
- Databases
- MySQL difference between Union All and full outer join
-
Junior Member
Re: difference between Union All and full outer join
UNION ALL: there is restriction for set operators, i.e. the columns in query 1 must match the columns in query2 in data type,order and number.
some e.g.:
display those who are emp as well managers(INTERSECT)
display those who are not managers (MINUS)
display those depts which do not have emp(MINUS)
dispaly those depts which have emp(INTERSECT) try these......
OUTER-JOIN: used on those tables that keep common columns just like EQUI-JION. but, the o/p will display some extra information which is available in only one of the two tables......
E.G.:
display emp details along with coressponding department details and also display that department details which there are no emp....
than q
sateesh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules