Get the App
SLTechnology News&Howtos  ›  Database  › 

SqlServer series notes-subquery

Shulou Source: shulou.com Published: 2022-06-01 08:54:50 11月14日 Update

The meaning of sub-query:

Use a query statement as a result set for other SQL statements to use, just like using a normal table

Query statements that are treated as result sets are called subqueries

Almost all places where tables can be used can be replaced by subqueries.

Key child IN

Exists Not Exists subquery returns true or false

SELECT * FROM (SELECT * FROM T2 where FAge

Tags: Query situation result statement question appearance reality efficiency ordinary frequent one line key function only place meaning data condition fruit index Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Information macOS Xiaomi Docker