Australian Websites - Promote Your URL
It is currently 19-05-2012 06:05 AM

All times are UTC + 10 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CROSS JOIN - new joint type
PostPosted: 21-02-2010 07:02 PM 
Offline
Noob Writer

Joined: 11-02-2010 10:02 PM
Posts: 3
Hi Guys,

I was using VS 2008 to build reports. Using GUI, I added table, selected fields created filters, etc ... and for the first time in my life I saw type of a joint called 'CROSS JOIN'

I was trying to read this article http://en.wikipedia.org/wiki/Join_(SQL)#Cross_join on WIKI, but still I don't really see a difference.

What am I missing here? What sort of a joint has Microsoft invented now?

Cheers,
Stereo_Web


Top
 Profile  
 
 Post subject: Re: CROSS JOIN - new joint type
PostPosted: 27-02-2010 03:02 PM 
Offline
Site Admin
User avatar

Joined: 06-02-2010 10:02 PM
Posts: 153
Quote:
A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved in the join. The size of a Cartesian product result set is the number of rows in the first table multiplied by the number of rows in the second table. The following example shows a Transact-SQL cross join.


The above quote is from MSDN support.

What it means is that if in table A you had 10 records and table B had 100 records, and 8 records from table A would match the table B foreign keys, that means you would get 800 records from running that SQL query with that CROSS JOIN

_________________
Bulk Submissions for SEO services :: Dirstats - Dir of Dirs
----------------------------
Find Service Web Directory


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 10 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO