FROM table_or_view_name
row source
What changes
- Input
- a base table or view (view expands to its own graph)
- Output or change
- rowset
Syntax at a glance
FROM [ database_name . [ schema_name ] . | schema_name . ] table_or_view_name [ [ AS ] table_alias ]
Work example
A query needs FROM table_or_view_name when it must row source.
Build a small query from literal rows. Change one clause and compare columns, row count, ordering, and NULL behavior.
Check your work FROM table_or_view_name. The result of FROM table_or_view_name matches the intended row shape and the query has no dependency on permanent data.
Open Microsoft Learn for full syntax, permissions, and details for your version.