Forum Replies Created

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

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

  • RE: Sum differences

    What Sean says.

    It'll be much easier to suggest which to use if you can give us some sample data and tell us what you want to do with it.

  • RE: Sum differences

    That really depends on what you're trying to achieve. Both could be correct (or incorrect).

  • RE: Today's Random Word!

    Hide

  • RE: Hourly

    girl_bj (9/23/2014)


    I get this error:

    The data types time and datetime are incompatible in the greater than or equal to operator.

    Which answer are you getting the error on?

  • RE: Hourly

    SELECT

    SampleDate,

    CAST(SampleDate AS time),

    SampleID

    FROM

    DateTimeQuery

    WHERE

    CAST(SampleDate AS time) >= dateadd(hh, datediff(hh, 0, getdate()) - 1, 0)

    AND

    CAST(SampleDate AS time) < dateadd(hh, datediff(hh, 0, getdate()), 0)

    That will return the data...

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