Code: Select all
Hour([Trades].[Tradedate])
My question is it possible to run eight hours at once or separate and then transfer to excel?
Code: Select all
Hour([Trades].[Tradedate])
Code: Select all
SELECT Hour([Trades].[Tradedate]) AS Hourly
FROM Trades
GROUP BY Hour([Trades].[Tradedate]), Trades.Symbol
HAVING (((Hour([Trades].[Tradedate]))>=9 And (Hour([Trades].[Tradedate]))<10) AND ((Trades.Symbol)="mes"));
Code: Select all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quEightOclock trades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quNineOclockTrades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quTenOclockTrades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quElevenOclockTrades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quTwelveOclockTrades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quThirteenOclokTrades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quFourteenOclockTrades]
union all
SELECT Hourly, CountOfProfit, SumOfProfit
FROM [quFifthteenOclockTrades];