Difference between revisions of "Production.vProductAndDescription (view)"
| Line 27: | Line 27: | ||
ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID]; | ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID]; | ||
</pre> | </pre> | ||
| − | |||
== automatically generated == | == automatically generated == | ||
| Line 34: | Line 33: | ||
| '''view | | '''view | ||
| Production.vProductAndDescription | | Production.vProductAndDescription | ||
| − | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
| Line 69: | Line 68: | ||
| '''Object Type | | '''Object Type | ||
| '''Dependency Type | | '''Dependency Type | ||
| − | + | ||
|- | |- | ||
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| Line 86: | Line 85: | ||
| Table | | Table | ||
| Select | | Select | ||
| + | |- | ||
| + | | [[.Production_(schema)|.Production]] | ||
| + | | Schema | ||
| + | | Schema | ||
|} | |} | ||
Revision as of 06:25, 30 November 2009
wikibot
| view | Production.vProductAndDescription |
CREATE VIEW [Production].[vProductAndDescription]
WITH SCHEMABINDING
AS
-- View (indexed or standard) to display products and product descriptions by language.
SELECT
p.[ProductID]
,p.[Name]
,pm.[Name] AS [ProductModel]
,pmx.[CultureID]
,pd.[Description]
FROM [Production].[Product] p
INNER JOIN [Production].[ProductModel] pm
ON p.[ProductModelID] = pm.[ProductModelID]
INNER JOIN [Production].[ProductModelProductDescriptionCulture] pmx
ON pm.[ProductModelID] = pmx.[ProductModelID]
INNER JOIN [Production].[ProductDescription] pd
ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID];
automatically generated
| view | Production.vProductAndDescription |
| Description | Product names and descriptions. Product descriptions are provided in multiple languages. |
CREATE VIEW [Production].[vProductAndDescription]
WITH SCHEMABINDING
AS
-- View (indexed or standard) to display products and product descriptions by language.
SELECT
p.[ProductID]
,p.[Name]
,pm.[Name] AS [ProductModel]
,pmx.[CultureID]
,pd.[Description]
FROM [Production].[Product] p
INNER JOIN [Production].[ProductModel] pm
ON p.[ProductModelID] = pm.[ProductModelID]
INNER JOIN [Production].[ProductModelProductDescriptionCulture] pmx
ON pm.[ProductModelID] = pmx.[ProductModelID]
INNER JOIN [Production].[ProductDescription] pd
ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID];
| Referenced Object | Object Type | Dependency Type |
| Production.Product | Table | Select |
| Production.ProductDescription | Table | Select |
| Production.ProductModel | Table | Select |
| Production.ProductModelProductDescriptionCulture | Table | Select |
| .Production | Schema | Schema |