← All tables and views

Northwind view

ProductDetails_V

Native view in the Northwind sample database.

77rows

14 columns

Schema from the provider contract
ColumnTypeNullableKeyReferences
ProductIDTEXTyes——
ProductNameTEXTyes——
SupplierIDTEXTyes——
CategoryIDTEXTyes——
QuantityPerUnitTEXTyes——
UnitPriceTEXTyes——
UnitsInStockTEXTyes——
UnitsOnOrderTEXTyes——
ReorderLevelTEXTyes——
DiscontinuedTEXTyes——
CategoryNameTEXTyes——
CategoryDescriptionTEXTyes——
SupplierNameTEXTyes——
SupplierRegionTEXTyes——

View definition

CREATE VIEW [ProductDetails_V] as
select 
p.*, 
c.CategoryName, c.Description as [CategoryDescription],
s.CompanyName as [SupplierName], s.Region as [SupplierRegion]
from [Products] p
join [Categories] c on p.CategoryId = c.CategoryId
join [Suppliers] s on s.SupplierId = p.SupplierId

Data preview

Sample records

77 rows available
ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitUnitPriceUnitsInStock
1Chai1110 boxes x 20 bags1839
2Chang1124 - 12 oz bottles1917
3Aniseed Syrup1212 - 550 ml bottles1013
4Chef Anton's Cajun Seasoning2248 - 6 oz jars2253
5Chef Anton's Gumbo Mix2236 boxes21.350
6Grandma's Boysenberry Spread3212 - 8 oz jars25120
7Uncle Bob's Organic Dried Pears3712 - 1 lb pkgs.3015
8Northwoods Cranberry Sauce3212 - 12 oz jars406