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.
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. |
 |
|
legacyvbc
Starting Member
37 Posts |
Posted - 2007-12-10 : 15:38:18
|
ok, thanks |
 |
|
|
|
|