Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Help with design needed for Historical Indices

Author  Topic 

legacyvbc
Starting Member

37 Posts

Posted - 2007-12-10 : 12:08:36
I need to add whatever table(s) are necessary to track the s&p 500 index historical constituents and I'm not sure how to do this.

Would it be something like this:

CREATE TABLE tblSP500
(Dt [SmallDateTime]NOT NULL,
[Ticker1] [tinyint] NOT NULL,
[Ticker2] [tinyint] NOT NULL,
[Ticker3] [tinyint] NOT NULL,
[Ticker...] [tinyint] NOT NULL,
[Ticker500] [tinyint] NOT NULL)

Can there be 500 columns?

Otherwise would I just use a date column and a tickerid column and then have 500 rows for each date?

Any help is greatly appreciated.

Thanks

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2007-12-10 : 15:13:02
Go with the later, Date and TickerID.
Go to Top of Page

legacyvbc
Starting Member

37 Posts

Posted - 2007-12-10 : 15:38:18
ok, thanks
Go to Top of Page
   

- Advertisement -