mikezang
02-16-2008, 10:40 AM
I have two tables price and split as below, is it possible to select all data in table price with price after split in one sql?
Table Price
Code,Date,Open,High,Low,Close
9984,08/02/15,100,200,50,150
....
9984,05/12/29,200,300,100,150
9984,05/12/28,600,900,300,450
....
9984,04/04/25,1800,2700,900,1350
....
Table Split
Code,Date,Ratio
9984,05/12/28,3
9984,04/04/25,3
Table Price
Code,Date,Open,High,Low,Close
9984,08/02/15,100,200,50,150
....
9984,05/12/29,200,300,100,150
9984,05/12/28,600,900,300,450
....
9984,04/04/25,1800,2700,900,1350
....
Table Split
Code,Date,Ratio
9984,05/12/28,3
9984,04/04/25,3