AdventureWorks
Production.vProductAndDescription View
Description
Product names and descriptions. Product descriptions are provided in multiple languages.
Properties
Creation Date08/01/2010 08:41
Is Schema Bound
Encrypted
Ansi Nulls
Columns
 Column NameDescriptionDatatypeLengthAllow NullsDefaultFormula
 ProductID int4   
 Name dbo.Name50   
 ProductModel dbo.Name50   
 CultureID nchar6   
 Description nvarchar400   
Objects that Production.vProductAndDescription depends on
 Database ObjectObject TypeDescriptionDep Level
Production.Culture tableProduction.CultureTableLookup table containing the languages in which some AdventureWorks data is stored.2
dbo.Flag datatypedbo.FlagUser Defined Data Type 2
dbo.Name datatypedbo.NameUser Defined Data Type 2
Production.Product tableProduction.ProductTableProducts sold or used in the manfacturing of sold products.1
Production.ProductCategory tableProduction.ProductCategoryTableHigh-level product categorization.3
Production.ProductDescription tableProduction.ProductDescriptionTableProduct descriptions in several languages.1
Production.ProductModel tableProduction.ProductModelTableProduct model classification.1
Production.ProductModelProductDescriptionCulture tableProduction.ProductModelProductDescriptionCultureTableCross-reference table mapping product descriptions and the language the description is written in.1
Production.ProductSubcategory tableProduction.ProductSubcategoryTableProduct subcategories. See ProductCategory table.2
Production.UnitMeasure tableProduction.UnitMeasureTableUnit of measure lookup table.2
View Definition
CREATE VIEW [Production].[vProductAndDescription] 
WITH SCHEMABINDING 
AS 

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];
See Also

Related Objects

Production Schema
AdventureWorks Database

 

 


© 2012 All Rights Reserved.

Send comments on this topic.