Searching for a precise term for a SQL phrase -


i'm trying document sql , wanted right terminology. if write sql so;

select child.id, parent.id hierarchy child  inner join hierarchy parent  on child.parentid = parent.id 

then have 1 actual table ('hierarchy') giving 2 names ('parent' , 'child') question how refer logical entity of table name.

what write in blank here name?

"this query uses 1 table (hierarchy) 2 _ (child , parent)"

[edit] left previous draft in question. corrected.

in sql server docs, term table_source :

specifies table, view, or derived table source, or without alias, use in transact-sql statement

in bnf grammar, it's:

<table_source> ::=  {         table_or_view_name [ [ ] table_alias ] [ <tablesample_clause> ]          [ ( < table_hint > [ [ , ]...n ] ) ]      | rowset_function [ [ ] table_alias ]          [ ( bulk_column_alias [ ,...n ] ) ]          | user_defined_function [ [ ] table_alias ] [ (column_alias [ ,...n ] ) ]     | openxml <openxml_clause>      | derived_table [ ] table_alias [ ( column_alias [ ,...n ] ) ]      | <joined_table>      | <pivoted_table>      | <unpivoted_table>       | @variable [ [ ] table_alias ]         | @variable.function_call ( expression [ ,...n ] ) [ [ ] table_alias ] [ (column_alias [ ,...n ] ) ] 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -