Difference between revisions of "Sales.CurrencyRate (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 CurrencyRate records.<br />PK_CurrencyRate_CurrencyRateID
+
| Primary key for CurrencyRate records.
 
|- valign="top"
 
|- valign="top"
 
| CurrencyRateDate
 
| CurrencyRateDate
Line 31: Line 32:
 
| not null
 
| not null
 
|  
 
|  
| Date and time the exchange rate was obtained.<br />AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
+
| Date and time the exchange rate was obtained.
 
|- valign="top"
 
|- valign="top"
 
| FromCurrencyCode
 
| FromCurrencyCode
Line 37: Line 38:
 
| not null
 
| not null
 
|  
 
|  
| Exchange rate was converted from this currency code.<br />AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
+
| Exchange rate was converted from this currency code.
 
|- valign="top"
 
|- valign="top"
 
| ToCurrencyCode
 
| ToCurrencyCode
Line 43: Line 44:
 
| not null
 
| not null
 
|  
 
|  
| Exchange rate was converted to this currency code.<br />AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
+
| Exchange rate was converted to this currency code.
 
|- valign="top"
 
|- valign="top"
 
| AverageRate
 
| AverageRate
Line 49: Line 50:
 
| not null
 
| not null
 
|  
 
|  
| Average exchange rate for the day.<br />
+
| Average exchange rate for the day.
 
|- valign="top"
 
|- valign="top"
 
| EndOfDayRate
 
| EndOfDayRate
Line 55: Line 56:
 
| not null
 
| not null
 
|  
 
|  
| Final exchange rate for the day.<br />
+
| Final exchange rate for the day.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 61: Line 62:
 
| 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_CurrencyRate_CurrencyRateID
 +
| CurrencyRateID
 +
|}
  
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|-
 +
| AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
 +
| Unique
 +
| CurrencyRateDate, FromCurrencyCode, ToCurrencyCode
 +
|}
  
 +
=== 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 82: Line 105:
 
|}
 
|}
  
 
+
=== 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 95: Line 118:
 
|}
 
|}
  
 +
=== References ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Dependency Type
 +
| '''Object Type
 +
| '''Referenced Object
 +
 +
|-
 +
| Schema
 +
| Schema
 +
| [[Sales_(schema)|Sales]]
 +
 +
|}
  
  

Revision as of 23:05, 2 February 2010

wikibot

Table Sales.CurrencyRate
Description Currency exchange rates.


Columns

Column Data Type Nullable Default Description
CurrencyRateID int not null Primary key for CurrencyRate records.
CurrencyRateDate datetime not null Date and time the exchange rate was obtained.
FromCurrencyCode nchar(3) not null Exchange rate was converted from this currency code.
ToCurrencyCode nchar(3) not null Exchange rate was converted to this currency code.
AverageRate money not null Average exchange rate for the day.
EndOfDayRate money not null Final exchange rate for the day.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.

Primary Key

Primary Key Columns
PK_CurrencyRate_CurrencyRateID CurrencyRateID

Indexes

Index Type Columns
AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode Unique CurrencyRateDate, FromCurrencyCode, ToCurrencyCode

Foreign Keys

Relation Column Referenced Column
Sales.Currency FromCurrencyCode CurrencyCode
Sales.Currency ToCurrencyCode CurrencyCode

Detail Tables

Detail Table Column Referencing Column
Sales.SalesOrderHeader CurrencyRateID CurrencyRateID

References

Dependency Type Object Type Referenced Object
Schema Schema Sales


automatically generated

Table Sales.CurrencyRate
Description Currency exchange rates.


Column Data Type Nullable Default Description / PK / Index
CurrencyRateID int not null Primary key for CurrencyRate records.
PK_CurrencyRate_CurrencyRateID
CurrencyRateDate datetime not null Date and time the exchange rate was obtained.
AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
FromCurrencyCode nchar(3) not null Exchange rate was converted from this currency code.
AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
ToCurrencyCode nchar(3) not null Exchange rate was converted to this currency code.
AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
AverageRate money not null Average exchange rate for the day.
EndOfDayRate money not null Final exchange rate for the day.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Sales.Currency FromCurrencyCode CurrencyCode
Sales.Currency ToCurrencyCode CurrencyCode


Detail Table Column Referencing Column
Sales.SalesOrderHeader CurrencyRateID CurrencyRateID


Dependency Type Object Type Referenced Object
Schema Schema Sales