One of my colleagues helped me with a query to count the number of transactions per hour. Without asking them again, could I please get some advice on how do the exact same thing, but to also break it down into 10 minute intervals? My current code is below:select INSTR_CODE,convert(varchar, TRADE_DATE_TIME, 112) as DATE, datepart(hh, TRADE_DATE_TIME) as HOUR, sum(QUANTITY)as QTYfrom HERMES_PUBLIC.PUBLIC_TRADES_HISTORYwhere TRADE_DATE_TIME >= '20110601' and INSTR_CODE = 'AGL'and TRADE_TYPE = 'AT'and datepart(hh, TRADE_DATE_TIME) >= 9 and datepart(hh, TRADE_DATE_TIME) < 17group by INSTR_CODE, convert(varchar, TRADE_DATE_TIME, 112), datepart(hh, TRADE_DATE_TIME)order by INSTR_CODE, DATE, HOUR