| title | Add Derived Tables to Queries (Visual Database Tools) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.custom | |||||
| ms.date | 06/13/2017 | ||||
| ms.prod | sql-server-2014 | ||||
| ms.reviewer | |||||
| ms.technology | ssms | ||||
| ms.topic | conceptual | ||||
| helpviewer_keywords |
|
||||
| ms.assetid | 05f1ba1d-465f-4e36-84bb-21b963c9b8f9 | ||||
| author | stevestein | ||||
| ms.author | sstein | ||||
| manager | craigg |
Derived tables are result sets used as table sources in a query. You can add a derived table to a query in the Diagram Pane.
-
Open an existing query or create a new query.
-
Right-click the Diagram Pane and choose Add New Derived Table.
A new table with the name derivedtbl_N is added, and the derived table's SELECT statement is added to the query's FROM clause.
Perform Basic Operations with Queries (Visual Database Tools)
Create Queries (Visual Database Tools)
Open Queries (Visual Database Tools)
SELECT (Transact-SQL)