Basic query Flow "MSSQL"

Source: Internet
Author: User

4 DML (Data manipulation Language) commands (SELECT INSERT UPDATE DELETE)

The query syntax has a unique fixed order

Select-from-where-group By-having-order by

3. FROM clause data source

    • Local SQL Server table . (The number of tables that can be accessed in a single SQL SELECT statement cannot exceed 256)
    • A subquery is a derived table, also known as a sub-selection or inline view.
    • view or a stored SELECT statement.
    • table-valued user-defined functions return rows and columns.
    • Distributed Data Sources use OPENQUERY () and other distributed functions from other SQL Server databases, other SQL Servers, other database platforms (such as Microsoft Access, Oracle, and FoxPro), or applications ( such as Excel) to extract the data.
    • Full-text search can return datasets that contain information about which rows include specific words.
    • Perspective creates a crosstab within the FROM clause.
    • The XML data source uses XQuery.
    • The Row constructor uses the values () clause to construct hard-coded rows.
    • For inserted and deleted virtual tables from INSERT, UPDATE, or delete commands, you can use the output clause to pass them to an external query as a subquery.

  

Basic query Flow "MSSQL"

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.