Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reformating a table

Status
Not open for further replies.

specialj

Programmer
Jun 24, 2003
32
US
i basically have a table that has stock prices for every day of the last year for a bunch of companies. i need to out put a table with one column for the date and then one column for each stocks price. can you do that with sql? I'm not to familiar with the nuances of the languange.
 
Old Table
Name Date Price <--column names
MSFT 6/24 37.5
MSFT 6/23 33
AOL 6/24 22
AOL 6/23 21.3

New Table
Date MSFT AOL <--column names
6/24 37.5 22
6/23 33 21.3

Everything in the tables is a string except for the date which is a date object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top