Difference between revisions of "Person.vStateProvinceCountryRegion (view)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''view | Person.vStateProvinceCountryRegion |- |} <pre> CREATE VIEW [Person].[vStatePro...) |
|||
Line 24: | Line 24: | ||
ON sp.[CountryRegionCode] = cr.[CountryRegionCode]; | ON sp.[CountryRegionCode] = cr.[CountryRegionCode]; | ||
</pre> | </pre> | ||
+ | |||
+ | == automatically generated == | ||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- | ||
+ | | '''view | ||
+ | | Person.vStateProvinceCountryRegion | ||
+ | |- | ||
+ | |||
+ | | '''Description | ||
+ | | Joins StateProvince table with CountryRegion table. | ||
+ | |- | ||
+ | |||
+ | |} | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | 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]; | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referenced Object | ||
+ | | '''Object Type | ||
+ | | '''Dependency Type | ||
+ | |||
+ | |- | ||
+ | | [[Person.CountryRegion_(table)|Person.CountryRegion]] | ||
+ | | Table | ||
+ | | Select | ||
+ | |- | ||
+ | | [[Person.StateProvince_(table)|Person.StateProvince]] | ||
+ | | Table | ||
+ | | Select | ||
+ | |} |
Revision as of 23:59, 26 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 |