Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Inner Join Expand / Collapse
Author
Message
Posted Tuesday, July 1, 2008 11:13 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 3, 2008 12:33 AM
Points: 2, Visits: 9
I want to SQL Server 2000 more 3 table join using Inner Join and get more fields each tables. pl give samle query me.
Thank u very much
Post #527024
Posted Wednesday, July 2, 2008 2:38 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, January 26, 2012 5:26 AM
Points: 1,367, Visits: 1,585
You can join three tables by providing the join condition for each join. e.g.:
SELECT  *
FROM sysobjects AS o
JOIN syscolumns AS c ON o.id = c.id
JOIN syscomments AS sc ON c.cdefault = sc.id

Probably you would like to read more on this at http://msdn.microsoft.com/en-us/library/aa213233(SQL.80).aspx

Regards,
Andras




Andras Belokosztolszki, MCPD, PhD
GoldenGate Software
Post #527097
Posted Wednesday, July 2, 2008 6:21 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 8:22 AM
Points: 14,205, Visits: 28,534
That sums it up very well.

By the way, you're posting a SQL Server 2000 question in the SQL Server 2005 forum. While this question was fairly generic and the answer would have applied to SQL Server 6.5 or SQL Server 2008, if your questions get more specific, you'll want to put them in the correct forum.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server Query Performance Tuning
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #527229
Posted Thursday, July 3, 2008 12:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 3, 2008 12:33 AM
Points: 2, Visits: 9
Thanks you very much your support link. I could follow along.
Best Regards!!!
Post #527784
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse