Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2005, 04:15 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Joins

Hi Experts,

Can anyone tell me the difference between these two queries. How SQL server handles such queries and the perfomance issues.

Select *
From Table1
      Inner Join Table2
            On Table1.Key = Table2.Key
            And Table2.Key2 = Somevalue
Where Table1.Key2 = someothervalue

And


Select *
From Table1
      Inner Join Table2
            On Table1.Key = Table2.Key
Where Table1.Key2 = someothervalue
And Table2.Key2 = Somevalue


Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old February 9th, 2005, 05:15 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

No Difference else if you do left join

Ahmed Ali
Software Developer
 
Old February 10th, 2005, 12:21 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Will there be any performance issue in case of Inner Join??

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
What are joins? Bhalchandra SQL Server 2000 2 July 2nd, 2007 11:29 PM
Problems with joins brettdalldorf SQL Server 2000 4 December 22nd, 2005 02:50 AM
Joins nalla Oracle 0 December 14th, 2005 05:54 AM
joins on more than 2 tables badgolfer Access 2 February 22nd, 2005 07:13 PM
Joins marthaj SQL Server 2000 7 June 26th, 2003 09:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.