我有一张如下表:
Date, Security_Name, Price
1/1/00, AAPL, 100
1/1/00, BBRY, 200
...
1/2/00, AAPL, 101
1/2/00, BBRY, 195
...
我正在尝试编写一个显示以下内容的查询:
Date, Price_AAPL, Price_BBRY
1/1/00, 100, 200
1/2/00, 101, 195
我试过这个查询...
SELECT Date, Price
FROM Table
WHERE Security_Name = "AAPL" OR Security_Name = "BBRY"
但我得到的结果就像原来的堆叠表一样。我正在考虑以某种方式复制另一行,这超出了我的能力。