What is Cross Join

Answers were Sorted based on User's Feedback



What is Cross Join..

Answer / ramesh

A join with out condition is called CrossJoin.
It also called as cartesionjoin.
It produces resultset where every row is first table joined
with every row in second table.

Is This Answer Correct ?    5 Yes 1 No

What is Cross Join..

Answer / kuldeep sharma

SQL Cross Join...>Cartesian product of both tables.

Example:
Let left table has 10 rows and right table has 8 rows then
SQL CROSS Join will return 180 rows combining each record
of left table with all records of right side table.
Consider the following example of CROSS Join:



USE PUBS
SELECT AU_FNAME, AU_LNAME, PUB_NAME
FROM AUTHORS CROSS JOIN PUBLISHERS
ORDER BY AU_FNAME



Above cross join will return 23 * 8 = 184 results by
multiplying each row of authors table with publishers table.

Is This Answer Correct ?    1 Yes 0 No

What is Cross Join..

Answer / colin

A small error kuldeep..if left table has 10 rows n right
table has 8 rows..then a cross join wud return 80 rows
(10*8)..besides dis ur totally ryt.. Cross joins are also
called cartesian product..

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Is it possible to call a stored procedure within a stored procedure?

0 Answers  


What is row by row processing ?

2 Answers  


what is the Ticketing tool used in Wipro technologies at Bangalore...???

0 Answers   Liquid Hub,


what is normalization? what is denormalization?

9 Answers   Satyam,


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

0 Answers  






What is the sql server 2000 version number?

0 Answers  


What does Master database contains?

0 Answers   Abacus,


Does server sql treat char as a variable-length or fixed-length column?

0 Answers  


Give the query of getting last two records from the table in SQL SERVER?

0 Answers   Petranics Solutions,


When to use Inner join & when to use subquery?

0 Answers   IBM,


How to retrieve error messages using mssql_get_last_message()?

0 Answers  


write coding for importing sql data into a word excel...

1 Answers   Oracle,


Categories