Viewing 15 posts - 886 through 900 (of 1,248 total)
spectra (9/26/2014)
>>>>Remove the CONVERT and you'll be doing the date range check you want.how do you convert 26/09/2014 to Date ?
If your dates are stored as
2014-09-26 14:25:51.310
2014-09-26 12:46:42.647
2014-09-24 14:49:35.190
2014-09-24...
September 26, 2014 at 8:05 am
Good spot Chris. I'd mentally accounted for it but forgot to actually write it in.
September 26, 2014 at 7:50 am
create table #Test
(
CreatedOn datetime
,ID int identity(1,1)
)
insert into #test
select '2014-09-26 14:25:51.310' union all
select '2014-09-26 12:46:42.647' union all
select '2014-09-24 14:49:35.190' union all
select '2014-09-24 12:39:21.150' union all
select '2014-09-19 15:22:36.233' union all
select '2014-09-19...
September 26, 2014 at 7:38 am
I'm struggling to understand what you need. Is that the only row you need returning? Can you post some sample data please.
September 26, 2014 at 7:15 am
What exactly is the problem? You need to be very careful using BETWEEN with datetime. You're much better using >= and <=.
September 26, 2014 at 6:53 am
Lynn Pettis (9/25/2014)
Sean Lange (9/25/2014)
September 25, 2014 at 2:45 pm
Hi Bill,
thanks for the Series. I've struggling with an odd problem with comparing the results in Excel. When I copy the filtered results across and apply the Auto-Average...
September 25, 2014 at 5:56 am
If you change the fixed date to getdate() or the time you ran the report it will round the hour to the start of that hour for the start date...
September 24, 2014 at 3:51 am
StartDate = dateadd(hh, datediff(hh, 0, '2014-09-24 08:30:00.000') - 1, 0)
EndDate = dateadd(hh, datediff(hh, 0, '2014-09-24 08:30:00.000'), 0)
Does that do what you want?
September 24, 2014 at 3:22 am
Do you mean how do you show a rounded time in the end date column?
September 24, 2014 at 3:12 am
I looked at the question and thought that was a lot to do for first thing in the morning. Then I looked at it again and saw what the...
September 24, 2014 at 1:11 am
Viewing 15 posts - 886 through 900 (of 1,248 total)