Description
Unit of measure lookup table.
Table properties
| name | value |
|---|
| name | [Production].[UnitMeasure] |
| created | Mar 19 2009 9:09PM |
| modified | Mar 19 2009 9:10PM
|
| ansi nulls | on
|
| quoted identifier | on
|
| row count | 38 |
| Size of data | 8 kb |
| Size of indexes | 24 kb |
| Maximum size of a single row | 220 bytes |
Columns
| column | datatype | length | bytes | default | nulls | PK | FK | UQ | computed | comment |
|---|
| UnitMeasureCode | nchar(3) | 3 | 12 | | no
| yes
| |
| no
| Primary key.
|
| Name | Name | 50 | 200 | | no
|
| |
| no
| Unit of measure description.
|
| ModifiedDate | datetime | 23 | 8 | (getdate()) | no
|
| |
| no
| Date and time the record was last updated.
|
Indexes
| name | description | column | comment |
|---|
| AK_UnitMeasure_Name | nonclustered, unique located on PRIMARY | Name | Unique nonclustered index.
|
| PK_UnitMeasure_UnitMeasureCode | clustered, unique, primary key located on PRIMARY | UnitMeasureCode | Clustered index created by a primary key constraint.
|
Referenced by
Foreign key graph
Defaults
Dependency graph
Objects that [Production].[UnitMeasure] depends on
| name | object type | database | server | level |
|---|
| Name | type | AdventureWorks2008 | SPRING\KATMAI | 1 |
Sample rows
| UnitMeasureCode | Name | ModifiedDate |
|---|
| BOX
| Boxes
| 6/1/1998 12:00:00 AM
|
| BTL
| Bottle
| 6/1/1998 12:00:00 AM
|
| C
| Celsius
| 6/1/1998 12:00:00 AM
|
| CAN
| Canister
| 6/1/1998 12:00:00 AM
|
| CAR
| Carton
| 6/1/1998 12:00:00 AM
|
| CBM
| Cubic meters
| 6/1/1998 12:00:00 AM
|
| CCM
| Cubic centimeter
| 6/1/1998 12:00:00 AM
|
| CDM
| Cubic decimeter
| 6/1/1998 12:00:00 AM
|
| CM
| Centimeter
| 6/1/1998 12:00:00 AM
|
| CM2
| Square centimeter
| 6/1/1998 12:00:00 AM
|
Code
CREATE TABLE [Production].[UnitMeasure](
[UnitMeasureCode] [nchar](3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Name] [dbo].[Name] NOT NULL,
[UnitMeasureCode] [nchar](3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ModifiedDate] [datetime] NOT NULL,
CONSTRAINT [PK_UnitMeasure_UnitMeasureCode] PRIMARY KEY CLUSTERED
(
[UnitMeasureCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [Production].[UnitMeasure] ADD CONSTRAINT [DF_UnitMeasure_ModifiedDate] DEFAULT (getdate()) FOR [ModifiedDate]