Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
64 views5 pages

SRC Objects Adv 5tables

The document describes the columns and data types for tables in a sales database. It includes columns for primary keys, foreign keys, data types and nullability for tables like ProductCategory, ProductSubcategory, Product, SalesOrder, SalesOrderDetail. The tables track information like product names and identifiers, order dates and statuses, associated customers and shipping details.

Uploaded by

dataanalyst1005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views5 pages

SRC Objects Adv 5tables

The document describes the columns and data types for tables in a sales database. It includes columns for primary keys, foreign keys, data types and nullability for tables like ProductCategory, ProductSubcategory, Product, SalesOrder, SalesOrderDetail. The tables track information like product names and identifiers, order dates and statuses, associated customers and shipping details.

Uploaded by

dataanalyst1005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

ColumnName DataType IsNull constraint

[ProductCategoryID] [int] NOT NULL pk


[Name] varchar(50) NOT NULL
[ModifiedDate] [datetime] NOT NULL
ColumnName DataType IsNull
[ProductSubcategoryID] [int] NOT NULL pk
[ProductCategoryID] [int] NOT NULL fk reerence product category table
[Name] varchar(50) NOT NULL
[ModifiedDate] [datetime] NOT NULL
ColumnName DataType IsNull constraint
[ProductID] [int] NOT NULL, pk
[Name] varchar(50) NOT NULL,
[ProductNumber] [nvarchar](25) NOT NULL,
[MakeFlag] bit NOT NULL,
[FinishedGoodsFlag] bit NOT NULL,
[Color] [nvarchar](15) NULL,
[SafetyStockLevel] [smallint] NOT NULL,
[ReorderPoint] [smallint] NOT NULL,
[StandardCost] [decimal](8, 2) NOT NULL,
[ListPrice] [decimal](8, 2) NOT NULL,
[Size] [nvarchar](5) NULL,
[SizeUnitMeasureCode] [nchar](3) NULL,
[WeightUnitMeasureCode] [nchar](3) NULL,
[Weight] [decimal](8, 2) NULL,
[DaysToManufacture] [int] NOT NULL,
[ProductLine] [nchar](2) NULL,
[Class] [nchar](2) NULL,
[Style] [nchar](2) NULL,
[ProductSubcategoryID] [int] NULL, fk reference subcategory table
[ProductModelID] [int] NULL,
[SellStartDate] [datetime] NOT NULL,
[SellEndDate] [datetime] NULL,
[DiscontinuedDate] [datetime] NULL,
[ModifiedDate] [datetime] NOT NULL,
ColumnName DataType IsNull constraint
[SalesOrderID] [int] NOT NULL, pk
[RevisionNumber] [int] NOT NULL,
[OrderDate] [datetime] NOT NULL,
[DueDate] [datetime] NOT NULL,
[ShipDate] [datetime] NULL,
[Status] [tinyint] NOT NULL,
[OnlineOrderFlag] varchar(50) NOT NULL,
[SalesOrderNumber] varchar(50) NOT NULL,
[PurchaseOrderNumber] varchar(50) NULL,
[AccountNumber] varchar(50) NULL,
[CustomerID] [int] NULL,
[SalesPersonID] [int] NOT NULL,
[TerritoryID] [int] NULL,
[BillToAddressID] [int] NULL,
[ShipToAddressID] [int] NOT NULL,
[ShipMethodID] [int] NOT NULL,
[CreditCardID] [int] NOT NULL,
[CreditCardApprovalCode] [varchar](15) NULL,
[CurrencyRateID] [int] NULL,
[SubTotal] DECIMAL(20,5) NULL,
[TaxAmt] DECIMAL(20,5) NOT NULL,
[Freight] DECIMAL(20,5) NOT NULL,
[TotalDue] DECIMAL(20,5) NOT NULL,
[Comment] [nvarchar](128) NULL,
[ModifiedDate] [datetime] NOT NULL,
ColumnName DataType IsNull
[SalesOrderID] [int] NOT NULL, fk refrenece from sales order header
[SalesOrderDetailID] [int] NOT NULL, pk
[CarrierTrackingNumber] [nvarchar](25) NULL,
[OrderQty] int NOT NULL,
[ProductID] [int] NOT NULL, fk reference product table
[SpecialOfferID] [int] NOT NULL,
[UnitPrice] DECIMAL(20,5) NOT NULL,
[UnitPriceDiscount] DECIMAL(20,5) NOT NULL,
[LineTotal] DECIMAL(20,5) NOT NULL,
[ModifiedDate] [datetime] NOT NULL,

You might also like