Forum Replies Created

Viewing 15 posts - 2,551 through 2,565 (of 5,109 total)

  • RE: Search with Date Range

    Yes, but replace GETDATE() with your column. You also don't need the third parameter, unless you're converting to an (n)varchar. A date will always be returned in the format yyyy-MM-dd

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Search with Date Range

    VegasL - Saturday, November 18, 2017 10:33 AM

    Ok got it. thanks for the tip.

    select *
    from #test_table
    where [Date] >='2016-12-01' and [Date] <'2017-02-10'

    How...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Search with Date Range

    VegasL - Saturday, November 18, 2017 9:50 AM

    Hi Erik,

    Here's what I tried:

    select *
    from #test_table
    where [Date] between '2016-12%' and '2017-02%'

    Why are you...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SOS

    peter.row - Friday, November 17, 2017 7:30 AM

    Thom A - Friday, November 17, 2017 7:19 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: 0 or $0.00 instead of NULL?

    It's also worth noting, however that the SUM of a "bunch" of NULL values is NULL, where as for COUNT the value would be 0. Similarly, the SUM of now...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: 0 or $0.00 instead of NULL?

    Wrap the ISNULL around your SUM instead.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Are the posted questions getting worse?

    Michael L John - Friday, November 17, 2017 8:42 AM

    The CEO does it every Friday after lunch.  Usually there's a 3-4...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SOS

    ddodge2 - Friday, November 17, 2017 7:35 AM

    I haven't decided yet on whether or not I'd like to see someone come up...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SOS

    peter.row - Friday, November 17, 2017 7:14 AM

    Have you tried Windows 10 IoT edition - which runs on a Raspberry Pi

    Yes,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Cumulative subtraction

    John Mitchell-245523 - Friday, November 17, 2017 6:30 AM

    I think he just needs LAG, doesn't he?  Table DDL and consumable sample...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Cumulative subtraction

    selpoivre - Friday, November 17, 2017 5:58 AM

    You can answer query for 2012 .It would be great help
    Thanks

    But which environment are you...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Cumulative subtraction

    Duplicate of https://www.sqlservercentral.com/Forums/1908328/Cumulative-subtraction.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Cumulative subtraction

    Question, are you really on SQL Server 2008? This would be far simpler on 2012 onwards.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Excel drivers for ssis package

    sqlsniffer - Friday, November 17, 2017 4:37 AM

    I have set my Run64BitRuntime

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Excel drivers for ssis package

    sqlsniffer - Friday, November 17, 2017 4:26 AM

    twin.devil - Friday, November 17, 2017 3:47 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 2,551 through 2,565 (of 5,109 total)