Difference between revisions of "Sales.CurrencyRate (table)"

From dbscript Online Help
Jump to: navigation, search
Line 127: Line 127:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for CurrencyRate records.PK_CurrencyRate_CurrencyRateID
+
| Primary key for CurrencyRate records.<br />PK_CurrencyRate_CurrencyRateID
 
|- valign="top"
 
|- valign="top"
 
| CurrencyRateDate
 
| CurrencyRateDate
Line 133: Line 133:
 
| not null
 
| not null
 
|  
 
|  
| Date and time the exchange rate was obtained.AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
+
| Date and time the exchange rate was obtained.<br />AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
 
|- valign="top"
 
|- valign="top"
 
| FromCurrencyCode
 
| FromCurrencyCode
Line 139: Line 139:
 
| not null
 
| not null
 
|  
 
|  
| Exchange rate was converted from this currency code.AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
+
| Exchange rate was converted from this currency code.<br />AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
 
|- valign="top"
 
|- valign="top"
 
| ToCurrencyCode
 
| ToCurrencyCode
Line 145: Line 145:
 
| not null
 
| not null
 
|  
 
|  
| Exchange rate was converted to this currency code.AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
+
| Exchange rate was converted to this currency code.<br />AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
 
|- valign="top"
 
|- valign="top"
 
| AverageRate
 
| AverageRate
Line 151: Line 151:
 
| not null
 
| not null
 
|  
 
|  
| Average exchange rate for the day.
+
| Average exchange rate for the day.<br />
 
|- valign="top"
 
|- valign="top"
 
| EndOfDayRate
 
| EndOfDayRate
Line 157: Line 157:
 
| not null
 
| not null
 
|  
 
|  
| Final exchange rate for the day.
+
| Final exchange rate for the day.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 163: Line 163:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
 
|}
 
|}
  

Revision as of 01:10, 27 November 2009

wikibot

Table Sales.CurrencyRate


Column Data Type Nullable Default PK Index
CurrencyRateID int not null PK_CurrencyRate_CurrencyRateID
CurrencyRateDate datetime not null AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
FromCurrencyCode nchar(3) not null AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
ToCurrencyCode nchar(3) not null AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode
AverageRate money not null
EndOfDayRate money not null
ModifiedDate datetime not null (getdate())


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


Detail Table Column Referencing Column
Sales.SalesOrderHeader CurrencyRateID CurrencyRateID

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