) '订单数' FROM (SELECT CASE THEN ), create_at, ) ),DATEPART(hh, create_at))+':00:00') ELSE ), create_at, ) ),DATEPART(hh, create_at))+':30:00') END 'dttime',* FROM dbo.[order](NOLOCK) o WHERE create_at >= '2018-07-11' and create_at<'2018-07-12') a GRO…