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