Compare 2 different dates without seconds in sqlserver 2005
select
(convert(varchar(10),DateTime1,103) + ' ' + convert(varchar(5),DateTime1,108))
,convert(varchar(10),DateTime2,103)+ ' '+ convert(varchar(5),DateTime2,108) from MIB_Time_Scheduling
where convert(varchar(10),DateTime1,103) = convert(varchar(10),DateTime1,103) and convert(varchar(5),DateTime2,108)=convert(varchar(5),DateTime2,108)
Labels: Compare datetime without second, datetime, Without Second
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home