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

Define right outer join in sql server joins?

0 Answers  


What is a select query statement in ms sql server?

0 Answers  


What is sql server programming?

0 Answers  


What is sql server profiler trace data file?

0 Answers  


What command is used to rename the database?

0 Answers  






If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

0 Answers   Facebook,


What is the difference between HAVING clause and the WHERE clause?

7 Answers  


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

0 Answers  


What is the openxml statement in sql server?

0 Answers  


What are the differences between stored procedure and functions in SQL Server 2000?

25 Answers   College School Exams Tests, HCL, Infosys, TCS,


how can we know that how many users are connected in perticuler server??????

2 Answers  


What is sql service broker?

0 Answers  


Categories