select soct.Captcha,CreateOn,* from SceneryOrderCheckTicket soctright join (SELECT Captcha,convert(char(10),CreateOn,120) as createdate FROM dbo.SceneryOrderCheckTicket where CreateOn>'2014-01-01' and Ord in(1,2,3,4)group by Captcha,convert(char(10),…