Diff. b/w Full Outer Join And Cross Join?

Answer Posted / samba shiva reddy . m

Full Outer join it will take all the records from the both the tables.
Example:
Table1 : emp
______________
empid empname
______________
1 samba
______________
2 Anju
______________
NULL Shiva
______________
5 NULL
______________

Table2 : user

______________
uid uname
______________
1 raju
______________
2 Khan
______________
3 Sripal
______________
4 Sathosh
______________
NULL Srinu
______________
9 NULL
______________

We will write the Full Outer join on both the table

Select * from emp full outer join [user] on emp.empid=[user].uid

the result will be both the tables with NULL vslues

but in the cross join it is bsed on the rows

in the cross join it will give the combination of all rows

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are trace files?

515


Explain where clause?

524


optimization techinques

2184


What is 2nf example?

539


Explain about analysis services?

565






How to drop an existing table?

542


Explain hostprotectionattribute in sql server 2005?

590


What is the difference between push and pull subscription? : sql server replication

597


How to bind a view to the schema of the underlying tables?

575


What are the differences between decimal and float in ms sql server?

556


What is GUID in sql server?

629


what is the difference between Tabular and Matrix report?

122


What is ddl command?

523


What is store procedure? How do they work? When do you use?

497


How to create a trigger for insert only?

587