Sales.CurrencyRate

Table: 'Sales.CurrencyRate'

7 fields. 90 bytes.

Currency exchange rates.

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
CurrencyRateIDint identity int Not nullPrimary key for CurrencyRate records. 
CurrencyRateDatedatetime   Not nullDate and time the exchange rate was obtained. 
FromCurrencyCodenchar3  Not nullExchange rate was converted from this currency code. 
ToCurrencyCodenchar3  Not nullExchange rate was converted to this currency code. 
AverageRatemoney19,4decimal(19,4) Not nullAverage exchange rate for the day. 
EndOfDayRatemoney19,4decimal(19,4) Not nullFinal exchange rate for the day. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Sales.CurrencyRate'

Primary Key NameField Name
PK_CurrencyRate_CurrencyRateIDCurrencyRateID

Foreign keys for table 'Sales.CurrencyRate', 2 items

ForeignPrimaryKey Name
CurrencyRate.FromCurrencyCodeCurrency.CurrencyCodeFK_CurrencyRate_Currency_FromCurrencyCode
CurrencyRate.ToCurrencyCodeCurrency.CurrencyCodeFK_CurrencyRate_Currency_ToCurrencyCode

Indexes for table 'Sales.CurrencyRate', 2 items

Index NameDescriptionClusteredUniqueFields
PK_CurrencyRate_CurrencyRateIDClustered index created by a primary key constraint.YesYesCurrencyRateID
AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCodeUnique nonclustered index.NoYesCurrencyRateDate, FromCurrencyCode, ToCurrencyCode

Triggers for table 'Sales.CurrencyRate', 1 item

NameDescriptionTypeEnabled
uCurrencyRateAFTER UPDATE trigger setting the ModifiedDate column in the CurrencyRate table to the current date.after Update Yes

Dependencies for table 'Sales.CurrencyRate', 1 item

Object NameTypeField Name
Sales.uCurrencyRatetriggerN/A