i want to know that how to using the group by with only time format about datetime type.
select CONVERT(VARCHAR(10), a.tempDay, 108) as returnDay, b.qty from table1 as a inner join table2 as b on (a.id = b.id)
where a.id = 100
group by CONVERT(VARCHAR(10), a.tempDay, 108), b.qty
Actually, tempDay is DateTime type.(yyyy-MM-dd HH:mm:ss) in this case, i just want to groupping with only "HH:mm:ss" format with Linq.