Description
Lookup table containing standard ISO currencies.
Table properties
| name | value |
|---|
| name | [Sales].[Currency] |
| created | Mar 19 2009 9:08PM |
| modified | Mar 19 2009 9:08PM
|
| ansi nulls | on
|
| quoted identifier | on
|
| row count | 105 |
| Size of data | 8 kb |
| Size of indexes | 24 kb |
| Maximum size of a single row | 220 bytes |
Columns
| column | datatype | length | bytes | default | nulls | PK | FK | UQ | computed | comment |
|---|
| CurrencyCode | nchar(3) | 3 | 12 | | no
| yes
| |
| no
| The ISO code for the Currency.
|
| Name | Name | 50 | 200 | | no
|
| |
| no
| Currency name.
|
| ModifiedDate | datetime | 23 | 8 | (getdate()) | no
|
| |
| no
| Date and time the record was last updated.
|
Indexes
| name | description | column | comment |
|---|
| AK_Currency_Name | nonclustered, unique located on PRIMARY | Name | Unique nonclustered index.
|
| PK_Currency_CurrencyCode | clustered, unique, primary key located on PRIMARY | CurrencyCode | Clustered index created by a primary key constraint.
|
Referenced by
Foreign key graph
Defaults
Dependency graph
Objects that [Sales].[Currency] depends on
| name | object type | level |
|---|
| Name | type | 1 |
Sample rows
| CurrencyCode | Name | ModifiedDate |
|---|
| AED
| Emirati Dirham
| 6/1/1998 12:00:00 AM
|
| AFA
| Afghani
| 6/1/1998 12:00:00 AM
|
| ALL
| Lek
| 6/1/1998 12:00:00 AM
|
| AMD
| Armenian Dram
| 6/1/1998 12:00:00 AM
|
| ANG
| Netherlands Antillian Guilder
| 6/1/1998 12:00:00 AM
|
| AOA
| Kwanza
| 6/1/1998 12:00:00 AM
|
| ARS
| Argentine Peso
| 6/1/1998 12:00:00 AM
|
| ATS
| Shilling
| 6/1/1998 12:00:00 AM
|
| AUD
| Australian Dollar
| 6/1/1998 12:00:00 AM
|
| AWG
| Aruban Guilder
| 6/1/1998 12:00:00 AM
|
Code
CREATE TABLE [Sales].[Currency](
[CurrencyCode] [nchar](3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Name] [dbo].[Name] NOT NULL,
[CurrencyCode] [nchar](3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ModifiedDate] [datetime] NOT NULL,
CONSTRAINT [PK_Currency_CurrencyCode] PRIMARY KEY CLUSTERED
(
[CurrencyCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [Sales].[Currency] ADD CONSTRAINT [DF_Currency_ModifiedDate] DEFAULT (getdate()) FOR [ModifiedDate]