Prepare for your Next Interview
This is a discussion on difference between Union All and full outer join within the MY SQL forums, part of the Databases category; Hi can any one tell me the difference between "union all" and "full outer join" thanks in advance...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
difference between Union All and full outer join
Hi
can any one tell me the difference between "union all" and "full outer join" thanks in advance |
| Sponsored Links |
|
|||
|
Re: difference between Union All and full outer join
The output record set in union all contains same number of columns as in the input tables. But it concatenates all the records of both the input tables in the output. Both the input tables should have the same number of columns and same data types for those columns.
But the full outer join concatenates the columns in both the table. No need for the input tables to have same number of records. |
| The Following User Says Thank You to Barbie For This Useful Post: | ||
|
|||
|
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 |
|
|||
|
Re: difference between Union All and full outer join
I am taking NT Backup for SAP in SQL Backend. But Backup time is less than one minute and shows the result of backup as OK. Is it correct or wrong .
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Meaning of Join and Link | JobHelper | Seibel | 2 | 05-08-2007 06:36 AM |
| Which to use - A join or a look-up | infinity | Data Warehousing | 0 | 02-28-2007 12:32 PM |
| life is full of Drill throughs,prompts and filters | Hamid | Get Together | 0 | 02-14-2007 07:34 PM |
| Using Join | bvani | Oracle | 6 | 02-12-2007 02:30 PM |
| IS there a Command to get a full report of memory in Linux? | timmy | Unix/Linux | 3 | 07-12-2006 03:19 PM |