Results 1 to 3 of 3

Thread: T-sql help syntax joining 3 tables

  1. #1
    Join Date
    Jun 2008
    Posts
    10

    T-sql help syntax joining 3 tables

    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
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can use parentheses to define the order in which you want them joined, you don't need to create inline views.

  3. #3
    Join Date
    Jun 2004
    Location
    Atlanta and Manhattan
    Posts
    607

    Agreed ... and this is a better practice ...

    Using the parentheses approach is a cleaner path to follow when you return later (or someone else does so) and is attempting to understand your intent, from a design perspective...

    Good luck.

Posting Permissions

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