Owner: | dbo |
Schema bound: | |
Encrypted: | |
Creation Date: | 08/06/2000 |
Description: |
Name | Data Type | Length | NULL | IsGUID | Description | |
|
CategoryName | nvarchar | 30 |
|
|
|
|
ProductName | nvarchar | 80 |
|
|
|
|
QuantityPerUnit | nvarchar | 40 |
|
|
|
|
UnitsInStock | smallint | 2 |
|
|
|
|
Discontinued | bit | 1 |
|
|
Objects that [dbo].[Products by Category] depends on
Object Name | Owner | Object Type | Dep Level | |
|
Categories | dbo | Table | 1 |
|
Suppliers | dbo | Table | 1 |
|
Products | dbo | Table | 2 |
create view "Products by Category" AS
SELECT Categories.CategoryName, Products.ProductName, Products.QuantityPerUnit, Products.UnitsInStock, Products.Discontinued
FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID
WHERE Products.Discontinued <> 1
--ORDER BY Categories.CategoryName, Products.ProductName
See Also
List of views