MySQL Forums
Forum List  »  Newbie

stock database design help
Posted by: cary ang
Date: February 21, 2006 08:18PM

hi all,

i'm looking to make a "simple" stock database for a growing list of stocks (say adding maybe 20 or so each day).

the thing is, i'm not sure how to design this database considering the potential size of it in the future.

should i make a table with 'stock symbol,' 'date,' and 'stock price' columns and then add new rows for each new day and stock symbol? (so i'd have multiple stock symbols and a ton of repeating dates in the date fields)

or, should i make a table with 'stock symbol' and make every column a date? so each row would have 'stock' 'date' 'date+1' 'date+2'... and the prices would be under each date. the only thing is i think making new columns would be a huge pain compared to just adding rows. i think.

or is there a better way to do this? i'm sort of a mysql newbie, so i appreciate any help i can get.

thanks!

-cary

Options: ReplyQuote


Subject
Written By
Posted
stock database design help
February 21, 2006 08:18PM
February 21, 2006 08:25PM
February 21, 2006 09:42PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.