Sales.CurrencyRate Table
Information
| Name | CurrencyRate |
| Schema | Sales |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:55 |
Extended Properties
| Name | Type | Property Name | Value |
| CurrencyRate | TABLE | MS_Description | Currency exchange rates. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | CurrencyRateID | int |   | | | |   | |
| |   |   | CurrencyRateDate | datetime |   | | | |   | |
| |   |   | FromCurrencyCode | nchar(3) |   | SQL_Latin1_General_CP1_CI_AS | Sales.Currency.CurrencyCode | |   | |
| |   |   | ToCurrencyCode | nchar(3) |   | SQL_Latin1_General_CP1_CI_AS | Sales.Currency.CurrencyCode | |   | |
| |   |   | AverageRate | money |   | | | |   | |
| |   |   | EndOfDayRate | money |   | | | |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Foreign Key Constraints
SQL Script
CREATE TABLE [Sales].[CurrencyRate] (
[CurrencyRateID] int NOT NULL IDENTITY,
[CurrencyRateDate] datetime NOT NULL,
[FromCurrencyCode] nchar(3) NOT NULL,
[ToCurrencyCode] nchar(3) NOT NULL,
[AverageRate] money NOT NULL,
[EndOfDayRate] money NOT NULL,
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_CurrencyRate_CurrencyRateDate_FromCurrencyCode_ToCurrencyCode] on [Sales].[CurrencyRate]([CurrencyRateDate], [FromCurrencyCode], [ToCurrencyCode]);