Inner Join

  • 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

  • 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

  • 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

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Thanks you very much your support link. I could follow along.

    Best Regards!!!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply