Difference between revisions of "Person.vStateProvinceCountryRegion (view)"
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
− | | ''' | + | | '''View |
| Person.vStateProvinceCountryRegion | | Person.vStateProvinceCountryRegion | ||
− | |- | + | |- valign="top" |
+ | | '''Description | ||
+ | | Joins StateProvince table with CountryRegion table. | ||
|} | |} | ||
+ | === Source === | ||
<pre> | <pre> | ||
CREATE VIEW [Person].[vStateProvinceCountryRegion] | CREATE VIEW [Person].[vStateProvinceCountryRegion] | ||
Line 24: | Line 27: | ||
ON sp.[CountryRegionCode] = cr.[CountryRegionCode]; | ON sp.[CountryRegionCode] = cr.[CountryRegionCode]; | ||
</pre> | </pre> | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Select | ||
+ | | Table | ||
+ | | [[Person.CountryRegion_(table)|Person.CountryRegion]] | ||
+ | |||
+ | |- valign="top" | ||
+ | | Select | ||
+ | | Table | ||
+ | | [[Person.StateProvince_(table)|Person.StateProvince]] | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Person_(schema)|Person]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Line 31: | Line 60: | ||
| Person.vStateProvinceCountryRegion | | Person.vStateProvinceCountryRegion | ||
|- valign="top" | |- valign="top" | ||
− | |||
| '''Description | | '''Description | ||
| Joins StateProvince table with CountryRegion table. | | Joins StateProvince table with CountryRegion table. | ||
|- | |- | ||
− | |||
|} | |} | ||
Latest revision as of 23:16, 23 June 2010
wikibot[edit]
View | Person.vStateProvinceCountryRegion |
Description | Joins StateProvince table with CountryRegion table. |
Source[edit]
CREATE VIEW [Person].[vStateProvinceCountryRegion] WITH SCHEMABINDING AS SELECT sp.[StateProvinceID] ,sp.[StateProvinceCode] ,sp.[IsOnlyStateProvinceFlag] ,sp.[Name] AS [StateProvinceName] ,sp.[TerritoryID] ,cr.[CountryRegionCode] ,cr.[Name] AS [CountryRegionName] FROM [Person].[StateProvince] sp INNER JOIN [Person].[CountryRegion] cr ON sp.[CountryRegionCode] = cr.[CountryRegionCode];
References[edit]
Dependency Type | Object Type | Referenced Object |
Select | Table | Person.CountryRegion |
Select | Table | Person.StateProvince |
Schema | Schema | Person |
automatically generated[edit]
view | Person.vStateProvinceCountryRegion |
Description | Joins StateProvince table with CountryRegion table. |
CREATE VIEW [Person].[vStateProvinceCountryRegion] WITH SCHEMABINDING AS SELECT sp.[StateProvinceID] ,sp.[StateProvinceCode] ,sp.[IsOnlyStateProvinceFlag] ,sp.[Name] AS [StateProvinceName] ,sp.[TerritoryID] ,cr.[CountryRegionCode] ,cr.[Name] AS [CountryRegionName] FROM [Person].[StateProvince] sp INNER JOIN [Person].[CountryRegion] cr ON sp.[CountryRegionCode] = cr.[CountryRegionCode];
Dependency Type | Object Type | Referenced Object |
Select | Table | Person.CountryRegion |
Select | Table | Person.StateProvince |
Schema | Schema | Person |