- Learn T-SQL Querying
- Pedro Lopes Pam Lahoud
- 266字
- 2021-06-24 14:38:09
FROM
The FROM clause specifies the tables or views used in the SELECT, DELETE, and UPDATE statements. It is required unless a SELECT list contains only constants, variables or arithmetic expressions, or an UPDATE clause does not contain references to other tables other than the target (for example, a join is not needed).
It can be a single table, a derived table (a table created from a nested sub-query), a Table-Valued Function (TVF), or it can be several tables and/or views joined together.
If the desired result set contains data from more than one table or view, joins can be used to link rows from one table to another. There are essentially the following three types of logical joins that are expressed when writing a query:
- Inner joins
- Outer joins (left, right, and full)
- Cross joins
In specific scenarios, SQL Server may infer the intended type of logical join operation. However, it is best to always explicitly state the type of required logical join operation the reader intends to implement.
- 輕松學(xué)Java
- SharePoint 2010開發(fā)最佳實踐
- Windows 7寶典
- 筆記本電腦維修90個精選實例
- MCGS嵌入版組態(tài)軟件應(yīng)用教程
- 智慧未來
- 大數(shù)據(jù)素質(zhì)讀本
- Hands-On Deep Learning with Go
- Embedded Linux Development using Yocto Projects(Second Edition)
- 傳感器應(yīng)用技術(shù)
- 人工智能:重塑個人、商業(yè)與社會
- Ubuntu 9 Linux應(yīng)用基礎(chǔ)
- Adobe Edge Quickstart Guide
- 實戰(zhàn)Hadoop
- 隨機分布控制系統(tǒng)的故障診斷與容錯控制