Home Forums SQL Server 2005 SQL Server Newbies Need urgent help with query RE: Need urgent help with query
sumith1andonly1
SSCrazy
Points: 2250
More actions
September 24, 2013 at 11:10 pm
#1652948
hi ,
pls check this query
select cardno,min(datetime1),max(datetime1),action
from view1
group by cardno,datetime1,action