dbTalk Databases Forums  

Join tables

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Join tables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MadLuke
 
Posts: n/a

Default Join tables - 10-20-2004 , 01:31 PM






Hi to all,
here are given two queries:

1) SELECT * FROM A INNER JOIN B ON A=B
2) SELECT * FROM A, B WHERE A=B


I'd like to know the differences for the server to interpretate the one or
the other and, over all, which offers greater performances.

Thanks in advance, MadLuke.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Join tables - 10-20-2004 , 02:11 PM






The Queries ask to join on tables not columns of tables

If you meant columns of tables and what is the difference in the syntax then
in the case of SQL Server there is no difference. It is smart enough to
know you mean the same thing.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"MadLuke" <luca2510TOGLIMI (AT) hotmail (DOT) com> wrote

Quote:
Hi to all,
here are given two queries:

1) SELECT * FROM A INNER JOIN B ON A=B
2) SELECT * FROM A, B WHERE A=B


I'd like to know the differences for the server to interpretate the one or
the other and, over all, which offers greater performances.

Thanks in advance, MadLuke.




Reply With Quote
  #3  
Old   
MadLuke
 
Posts: n/a

Default Re: Join tables - 10-20-2004 , 06:12 PM



I already know the two queries get the same records but I'd like to know how
the server differently fetch them and over all the eventual performance
differences.

Bye, MadLuke.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> ha scritto nel messaggio
news:uflruhttEHA.2116 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Quote:
The Queries ask to join on tables not columns of tables

If you meant columns of tables and what is the difference in the syntax
then in the case of SQL Server there is no difference. It is smart enough
to know you mean the same thing.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"MadLuke" <luca2510TOGLIMI (AT) hotmail (DOT) com> wrote in message
news:baydd.16882$1q2.10228 (AT) tornado (DOT) fastwebnet.it...
Hi to all,
here are given two queries:

1) SELECT * FROM A INNER JOIN B ON A=B
2) SELECT * FROM A, B WHERE A=B


I'd like to know the differences for the server to interpretate the one
or the other and, over all, which offers greater performances.

Thanks in advance, MadLuke.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.