--Create our historical data table
create table #google_stock
(
quote_date [datetime],
open_price [decimal](6,2),
close_price [decimal](6,2),
high_price [decimal](6,2),
low_price [decimal](6,2)
)
INSERT INTO #google_stock (quote_date, open_price, close_price, high_price, low_price) VALUES...