I have a Table, "Quotes", that is structured
qDate, qTicker, qClose
4/20/2015, goog, 540.93
4/19/2015, goog, 539.30
4/18/2015, goog, 537.10
....
3/19/2014, goog, 539.30
3/18/2014, goog, 537.10
I am trying to get the qClose of the last available Date (qDate). I am using the MAX(qDate) to find the last date but if I use it in my WHERE clause it errors, "Aggregate Functions not available in WHERE clause"
qDate, qTicker, qClose
4/20/2015, goog, 540.93
4/19/2015, goog, 539.30
4/18/2015, goog, 537.10
....
3/19/2014, goog, 539.30
3/18/2014, goog, 537.10
I am trying to get the qClose of the last available Date (qDate). I am using the MAX(qDate) to find the last date but if I use it in my WHERE clause it errors, "Aggregate Functions not available in WHERE clause"
Code:
Select Quotes.qClose
From Quotes
Where ((qTicker = 'goog') AND (qDate = Max(qDate));