Difference between revisions of "Person.vStateProvinceCountryRegion (view)"
| Line 24: | Line 24: | ||
ON sp.[CountryRegionCode] = cr.[CountryRegionCode]; | ON sp.[CountryRegionCode] = cr.[CountryRegionCode]; | ||
</pre> | </pre> | ||
| − | |||
== automatically generated == | == automatically generated == | ||
| Line 31: | Line 30: | ||
| '''view | | '''view | ||
| Person.vStateProvinceCountryRegion | | Person.vStateProvinceCountryRegion | ||
| − | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
| Line 63: | Line 62: | ||
| '''Object Type | | '''Object Type | ||
| '''Dependency Type | | '''Dependency Type | ||
| − | + | ||
|- | |- | ||
| [[Person.CountryRegion_(table)|Person.CountryRegion]] | | [[Person.CountryRegion_(table)|Person.CountryRegion]] | ||
| Line 72: | Line 71: | ||
| Table | | Table | ||
| Select | | Select | ||
| + | |- | ||
| + | | [[.Person_(schema)|.Person]] | ||
| + | | Schema | ||
| + | | Schema | ||
|} | |} | ||
Revision as of 06:25, 30 November 2009
wikibot
| view | Person.vStateProvinceCountryRegion |
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];
automatically generated
| 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];
| Referenced Object | Object Type | Dependency Type |
| Person.CountryRegion | Table | Select |
| Person.StateProvince | Table | Select |
| .Person | Schema | Schema |