User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » SQL NATURAL JOIN question, folks Page [1]  
aaronburro
Sup, B
53067 Posts
user info
edit post

I'm using MYSQL for a project I am working on, and I'm dickin around w/ some JOIN statements. The manual says that a NATURAL JOIN is the same as an INNER JOIN w/ a USING statement on all columns with the same name. So, I give it a whirl on two tables, testing both the INNER and NATURAL joins.

Only one problem: the result set returned for the NATURAL JOIN has less columns than the one for an INNER JOIN. I like this, but this means that a NATURAL join is not the same as an INNER join. Is this how a NATURAL join is supposed to work?

4/20/2006 7:50:44 PM

Maugan
All American
18178 Posts
user info
edit post

isn't that just a UNION?

4/21/2006 10:51:45 AM

OmarBadu
zidik
25071 Posts
user info
edit post

did you even try to look this up - it's a simple concept

4/21/2006 11:39:20 AM

aaronburro
Sup, B
53067 Posts
user info
edit post

actually, yeah. I did look it up. that's why i'm asking, asswipe.

and no, Maugan, it's not a union.

4/21/2006 12:47:48 PM

OmarBadu
zidik
25071 Posts
user info
edit post

i'd like to reiterate how much you suck

http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=deskbar&q=define%3Anatural+join

4/21/2006 12:50:03 PM

aaronburro
Sup, B
53067 Posts
user info
edit post

well, I googled that as well, fuckface, but when the MANUAL has a fucking discrepancy, you like to make sure

4/21/2006 1:04:43 PM

OmarBadu
zidik
25071 Posts
user info
edit post

it is the one and only link - how can you argue that you aren't a complete fool

there is no discrepancy - they are the same thing - but a natural join makes it "pretty"

4/21/2006 1:08:43 PM

aaronburro
Sup, B
53067 Posts
user info
edit post

have you read the MySQL manual. where it says it is EQUIVALENT?

4/22/2006 1:35:55 PM

bigben1024
All American
7167 Posts
user info
edit post

nerd fight!

4/22/2006 6:56:00 PM

 Message Boards » Tech Talk » SQL NATURAL JOIN question, folks Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.