hi,
Can anyone help with this? Something seems to be wrong except I cant figure out what it is.
I am trying to sort my data such that if [SP].time has appeared when [SP].series = "SPJ14-SPK14" then the data for the other 2 series will not show up. i.e. SPJ14 and SPK14. In other words, the time is unique.
Thanks in advance!
Can anyone help with this? Something seems to be wrong except I cant figure out what it is.
I am trying to sort my data such that if [SP].time has appeared when [SP].series = "SPJ14-SPK14" then the data for the other 2 series will not show up. i.e. SPJ14 and SPK14. In other words, the time is unique.
Code:
SELECT DISTINCT Last([SP].Series) AS LastOfSeries, [SP].Time, [SP].BidOrAsk, [SP].Price, Max(Len([Series])) AS Length FROM [SP] GROUP BY [SP].Time, [SP].BidOrAsk, [SP].Price HAVING (((Last([SP].Series))="SPJ14" Or (Last([SP].Series))="SPK14" Or (Last([SP].Series))="SPJ14-SPK14")) ORDER BY [SP].Time, Max(Len([Series]));
Thanks in advance!
Comment