Difference between revisions of "Production.vProductAndDescription (view)"
| Line 5: | Line 5: | ||
| '''view | | '''view | ||
| Production.vProductAndDescription | | Production.vProductAndDescription | ||
| + | |- valign="top" | ||
| + | | '''Description | ||
| + | | Product names and descriptions. Product descriptions are provided in multiple languages. | ||
|- | |- | ||
|} | |} | ||
| Line 27: | Line 30: | ||
ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID]; | ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID]; | ||
</pre> | </pre> | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Dependency Type | ||
| + | | '''Object Type | ||
| + | | '''Referenced Object | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Table | ||
| + | | [[Production.Product_(table)|Production.Product]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Table | ||
| + | | [[Production.ProductDescription_(table)|Production.ProductDescription]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Table | ||
| + | | [[Production.ProductModel_(table)|Production.ProductModel]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Table | ||
| + | | [[Production.ProductModelProductDescriptionCulture_(table)|Production.ProductModelProductDescriptionCulture]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | |||
| + | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:57, 28 December 2009
wikibot
| 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];
| Dependency Type | Object Type | Referenced Object |
| Select | Table | Production.Product |
| Select | Table | Production.ProductDescription |
| Select | Table | Production.ProductModel |
| Select | Table | Production.ProductModelProductDescriptionCulture |
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];
| Dependency Type | Object Type | Referenced Object |
| Select | Table | Production.Product |
| Select | Table | Production.ProductDescription |
| Select | Table | Production.ProductModel |
| Select | Table | Production.ProductModelProductDescriptionCulture |
| Schema | Schema | Production |