SQL Server multi-table query

Source: Internet
Author: User
    1. Same-Library operations
      Select a. Column name 1,b. Column name 2,a. Column name 3 from table name 1 as a
      Join table Name 2 as B
      On a. Association field =b. Associated Fields

    2. Different library operations
      Select a. Column name 1,b. Column name 2,a. Column Name 3 from library name 1.dbo. Table Name 1 as a
      Join library name 2.dbo. Table Name 2 as B
      On a. Association field =b. Associated Fields

    3. 2 Tables above the multi-table connection: The first two connections and then the third connection, go down, such as
      Select a. Column name 1,b. Column name 2,a. Column name 3 from table name 1 as a
      Join table Name 2 as B
      On a. Association field =b. Associated Fields
      Join table name 3 as C
      On a. Association field =c. Associated Fields

SQL Server multi-table query

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.