Professional Documents
Culture Documents
1. Return the product ID, product name, list price, size, unit measure name, the subcategory name
and the product’s model name. Filter your result to include only the products that are not in the
company inventory. Use alias for the table.
SELECT p.ProductID, p.Name as 'Product Name', p.ListPrice, p.size,um.Name as 'Unit Measure Name',
FROM [Production].[Product] p
JOIN [Production].[UnitMeasure] um
ON p.SizeUnitMeasureCode = um.UnitMeasureCode
JOIN [Production].[ProductSubcategory] sc
ON sc.ProductSubcategoryID = p.ProductSubcategoryID
JOIN [Production].[ProductModel] pm
ON pm.ProductModelID = p.ProductModelID
ON p.ProductID = i.ProductID
FROM [Production].[Product] a
JOIN [Production].[ProductListPriceHistory] b
ON a.ProductID = b.ProductID
SELECT *
FROM [Production].[Product]
FROM [Production].[ProductReview])
4. Write a query to show products with same price. Include only products with a list price higher
than 100 or with Reorder points greater than 500.
SELECT a.[ProductID],a.ListPrice,b.ProductID,b.ListPrice
FROM [Production].[Product] a
JOIN [Production].[Product] b
ON a.[ListPrice] = b.[ListPrice]