Forum Replies Created

Viewing 15 posts - 886 through 900 (of 1,248 total)

  • RE: issue with datetime

    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...

  • RE: issue with datetime

    Good spot Chris. I'd mentally accounted for it but forgot to actually write it in.

  • RE: issue with datetime

    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...

  • RE: issue with datetime

    I'm struggling to understand what you need. Is that the only row you need returning? Can you post some sample data please.

  • RE: issue with datetime

    What exactly is the problem? You need to be very careful using BETWEEN with datetime. You're much better using >= and <=.

  • RE: Are the posted questions getting worse?

    Lynn Pettis (9/25/2014)


    Sean Lange (9/25/2014)


    Between the spammers and crussell commenting on every single QOTD from the last 8 years there is next to nothing going on around here lately. I...

  • RE: Stairway to PowerPivot and DAX - Level 7: Function / Iterator Function Pairs: The DAX AVERAGE() and AVERAGEX() Functions

    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...

  • RE: Today's Random Word!

    Ed Wagner (9/25/2014)Terminator

    Colon

  • RE: Today's Random Word!

    Ouroboros

  • RE: Today's Random Word!

    Bite

  • RE: Hourly

    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...

  • RE: Hourly

    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?

  • RE: SQL

    Hi Jagadeesh,

    welcome to the forum. I'm not sure what your question is there. If you read the article in my signature it will make it much easier to...

  • RE: Hourly

    Do you mean how do you show a rounded time in the end date column?

  • RE: Supported spatial data formats

    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...

Viewing 15 posts - 886 through 900 (of 1,248 total)