Difference between revisions of "Sales.CurrencyRate (table)"
Line 99: | Line 99: | ||
| CurrencyRateID | | CurrencyRateID | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 121: | Line 120: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
|- | |- | ||
Line 129: | Line 127: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for CurrencyRate records. | + | | Primary key for CurrencyRate records.PK_CurrencyRate_CurrencyRateID |
− | |||
|- | |- | ||
| CurrencyRateDate | | CurrencyRateDate | ||
Line 136: | Line 133: | ||
| not null | | not null | ||
| | | | ||
− | | Date and time the exchange rate was obtained. | + | | Date and time the exchange rate was obtained.AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode |
− | |||
|- | |- | ||
| FromCurrencyCode | | FromCurrencyCode | ||
Line 143: | Line 139: | ||
| not null | | not null | ||
| | | | ||
− | | Exchange rate was converted from this currency code. | + | | Exchange rate was converted from this currency code.AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode |
− | |||
|- | |- | ||
| ToCurrencyCode | | ToCurrencyCode | ||
Line 150: | Line 145: | ||
| not null | | not null | ||
| | | | ||
− | | Exchange rate was converted to this currency code. | + | | Exchange rate was converted to this currency code.AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode |
− | |||
|- | |- | ||
| AverageRate | | AverageRate | ||
Line 158: | Line 152: | ||
| | | | ||
| Average exchange rate for the day. | | Average exchange rate for the day. | ||
− | |||
|- | |- | ||
| EndOfDayRate | | EndOfDayRate | ||
Line 165: | Line 158: | ||
| | | | ||
| Final exchange rate for the day. | | Final exchange rate for the day. | ||
− | |||
|- | |- | ||
| ModifiedDate | | ModifiedDate | ||
Line 172: | Line 164: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Revision as of 23:52, 26 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 |