-------------------------------------------------------------------------------------------------------------------------CREATE TABLE Account( AccountId int identity(1,1), CreationDate datetime, CONSTRAINT [PK_Account] PRIMARY KEY CLUSTERED ( [AccountId] ASC )WITH (FILLFACTOR = 80) ON [PRIMARY]) ON [PRIMARY]CREATE TABLE AccountSales( AccountSalesId int identity(1,1), AccountId int CONSTRAINT [PK_AccountSales] PRIMARY KEY CLUSTERED ( [AccountSalesId] ASC )WITH (FILLFACTOR = 80) ON [PRIMARY]) ON [PRIMARY]ALTER TABLE [dbo].[AccountSales] WITH CHECK ADD CONSTRAINT [FK_AccountSales_Account] FOREIGN KEY([AccountId])REFERENCES [dbo].[Account] ([AccountID])GOALTER TABLE [dbo].[AccountSales] CHECK CONSTRAINT [FK_AccountSales_Account]GO------------------------------------------------------------------------------------------------------------------------------
Id Date Server loaded from (not a column - just for display purposes)--------------------------1 1/1/2000 00:00 12 1/1/2000 01:00 13 1/1/2000 02:00 14 1/1/2000 00:00 25 1/1/2000 01:00 26 1/1/2000 0:300 1