Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
5ie9s in the local SQL Server7 SQL Server internally resolves a vie9 reference to references
against the $ase ta$les that !a=e u" the vie97
Lin=ed ta$les# 9hich are ta$les in *L D3 data sources !ade accessi$le to SQL Server7 This is
called a distri$uted >uery7 *L D3 data sources can $e accessed fro! SQL Server $y lin=ing
the! as a lin=ed server# or referencing the data source in an *2)R*.ST or *2)Q1R4
function7
The ,R*- clause can also contain ?oin s"ecifications# 9hich define the s"ecific "ath SQL Server
is to use in navigating fro! one ta$le to another7
The ,R*- clause is also used on the DLT and 12DAT state!ents to define the ta$les that
are !odified7
./R search_conditions
The ./R clause is a filter that defines the conditions each ro9 in the source ta$les !ust !eet to
>ualify for the SLCT7 *nly ro9s that !eet the conditions contri$ute data to the result set7 Data fro!
ro9s that do not !eet the conditions are not used7
The ./R clause is also used on the DLT and 12DAT state!ents to define the ro9s in the target
ta$les that are !odified7
0R*12 34 group_by_list
The 0R*12 34 clause "artitions the result set into grou"s $ased on the values in the colu!ns of the
group_by_list7 ,or exa!"le# the Northwind Orders ta$le has three values in ShipVia7 A 0R*12 34
ShipVia clause "artitions the result set into three grou"s# one for each value of ShipVia7
/A5()0 search_conditions
The /A5()0 clause is an additional filter that is a""lied to the result set7 Logically# the /A5()0 clause
filters ro9s fro! the inter!ediate result set $uilt fro! the a""lication of any ,R*-# ./R# or 0R*12
34 clauses in the SLCT state!ent7 /A5()0 clauses are !ost co!!only used 9ith a 0R*12 34 clause#
although a 0R*12 34 clause is not re>uired $efore a /A5()0 clause7
*RDR 34 order_list ' ASC 6 DSC +
The *RDR 34 clause defines the order in 9hich the ro9s in the result set are sorted7 order