Results 1 to 3 of 3

Thread: sql joins in sql server 05

  1. #1
    Join Date
    Jun 2008
    Posts
    10

    sql joins in sql server 05

    i have three tables a, b, c.

    I want to have an inner join with tables (a and b) with an outer join with table c.

    What is the simplest and easiest method to create this. Can I create a temporary inline view tables a and b then join with table c in sql server 05?

    Hope to hear from anyone.

    Regards,

    Nijojo.

  2. #2
    Join Date
    Mar 2003
    Location
    NJ
    Posts
    201
    select * from (select a.* from a inner join b on a.col1 = b.col1 and a.col2 = b.col2 and ...) d left outer join c on d.col1 = c.col1 and d.col2 = c.col2

    You can change the left outer join to right outer join or full outer join

  3. #3
    Join Date
    Jun 2008
    Posts
    10

    Thanks

    Thanks it worked perfectly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •