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

Answers were Sorted based on User's Feedback



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

Answer / ramesh

Full Outer Join requires a condition and related column in
the table.
Cross Join requires with out condition and no related
columns in the tables.

Is This Answer Correct ?    5 Yes 1 No

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

Answer / saurav kumar

Full outer join will give common + uncommon records from
both the table.
Suppose in TableA I have 5 records and TableB have 6
records. Both the table have 4 common records, means 4
records of TableA is common with TableB.
Then full outer join will give 4(common) + 1 (TableA)+ 2
(TableB) = 7 records.

Whereas Cross Join will give 5(TableA) * 6(TableB) = 30
records, also we can't put 'ON' condition with cross join.

Is This Answer Correct ?    4 Yes 0 No

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

Answer / 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

More SQL Server Interview Questions

How to retrieve duplicate rows in a table? How to delete the duplicate entries in a table?

15 Answers   Leo Technologies, Mannar Company, Synechron,


between cast and convert which function would you prefer and why?

0 Answers  


How many ways to create table-valued functions?

0 Answers  


what are the different types of replication you can set up in sql server? : Sql server database administration

0 Answers  


Explain the functionalities that views support?

0 Answers  






how many type of indexing in database?

0 Answers   IBM,


What is apply operator in sql?

0 Answers  


How do you know which index a table is using?

4 Answers  


How many types of Cursor in SQL SERVER?

1 Answers  


What are ddl (data definition language) statements for tables in ms sql server?

0 Answers  


how we can store the value like that 001,003,023 etc in sql server 2005

7 Answers  


What is the difference between clustered and a non-clustered index?

0 Answers   NA,


Categories