Difference between revisions of "Production.ProductSubcategory (table)"

From dbscript Online Help
Jump to: navigation, search
Line 12: Line 12:
  
  
 +
=== Columns ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 18: Line 19:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
 
 
 
|- valign="top"
 
|- valign="top"
Line 25: Line 26:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for ProductSubcategory records.<br />PK_ProductSubcategory_ProductSubcategoryID
+
| Primary key for ProductSubcategory records.
 
|- valign="top"
 
|- valign="top"
 
| ProductCategoryID
 
| ProductCategoryID
Line 31: Line 32:
 
| not null
 
| not null
 
|  
 
|  
| Product category identification number. Foreign key to ProductCategory.ProductCategoryID.<br />
+
| Product category identification number. Foreign key to ProductCategory.ProductCategoryID.
 
|- valign="top"
 
|- valign="top"
 
| Name
 
| Name
Line 37: Line 38:
 
| not null
 
| not null
 
|  
 
|  
| Subcategory description.<br />AK_ProductSubcategory_Name
+
| Subcategory description.
 
|- valign="top"
 
|- valign="top"
 
| rowguid
 
| rowguid
Line 43: Line 44:
 
| not null
 
| not null
 
| (newid())
 
| (newid())
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_ProductSubcategory_rowguid
+
| ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 49: Line 50:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.<br />
+
| Date and time the record was last updated.
 
|}
 
|}
  
 +
=== Primary Key ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Primary Key
 +
| '''Columns
 +
|-
 +
| PK_ProductSubcategory_ProductSubcategoryID
 +
| ProductSubcategoryID
 +
|}
  
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|-
 +
| AK_ProductSubcategory_Name
 +
| Unique
 +
| Name
 +
|-
 +
| AK_ProductSubcategory_rowguid
 +
| Unique
 +
| rowguid
 +
|}
  
 +
=== Foreign Keys ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 66: Line 93:
 
|}
 
|}
  
 
+
=== Detail Tables ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 79: Line 106:
 
|}
 
|}
  
 
+
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 90: Line 117:
 
| Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|-
 +
| Schema
 +
| Schema
 +
| [[Production_(schema)|Production]]
  
 
|}
 
|}
 
  
  

Revision as of 23:06, 2 February 2010

wikibot

Table Production.ProductSubcategory
Description Product subcategories. See ProductCategory table.


Columns

Column Data Type Nullable Default Description
ProductSubcategoryID int not null Primary key for ProductSubcategory records.
ProductCategoryID int not null Product category identification number. Foreign key to ProductCategory.ProductCategoryID.
Name dbo.Name not null Subcategory description.
rowguid uniqueidentifier not null (newid()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.

Primary Key

Primary Key Columns
PK_ProductSubcategory_ProductSubcategoryID ProductSubcategoryID

Indexes

Index Type Columns
AK_ProductSubcategory_Name Unique Name
AK_ProductSubcategory_rowguid Unique rowguid

Foreign Keys

Relation Column Referenced Column
Production.ProductCategory ProductCategoryID ProductCategoryID

Detail Tables

Detail Table Column Referencing Column
Production.Product ProductSubcategoryID ProductSubcategoryID

References

Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Production


automatically generated

Table Production.ProductSubcategory
Description Product subcategories. See ProductCategory table.


Column Data Type Nullable Default Description / PK / Index
ProductSubcategoryID int not null Primary key for ProductSubcategory records.
PK_ProductSubcategory_ProductSubcategoryID
ProductCategoryID int not null Product category identification number. Foreign key to ProductCategory.ProductCategoryID.
Name Name not null Subcategory description.
AK_ProductSubcategory_Name
rowguid uniqueidentifier not null (NEWID()) ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.
AK_ProductSubcategory_rowguid
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Production.ProductCategory ProductCategoryID ProductCategoryID


Detail Table Column Referencing Column
Production.Product ProductSubcategoryID ProductSubcategoryID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Production