Forum Replies Created

Viewing 15 posts - 271 through 285 (of 3,544 total)

  • RE: Number of Days between two Day Names

    Wow this thread went a bit sideways 🙁

    When I first read the first post I naturally thought of possible solutions. I did not even think about Monday to Monday...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Number of Days between two Day Names

    Why not just use a cartesian of possible combinations of start and end day (42 excluding same start and end day) together with the number of days and then do a simple lookup

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Calculating Date Difference

    ScottPletcher - Tuesday, April 24, 2018 8:11 AM

    Nice, but I think you'll need to a NULLIF(..., '19000101') to make this work...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Calculating Date Difference


    SELECT
    DATEDIFF(day, COALESCE(date0,dateStart),date1),
    DATEDIFF(day, COALESCE(date1,date0,dateStart),date2),
    DATEDIFF(day, COALESCE(date2,date1,date0,dateStart),date3),
    DATEDIFF(day, COALESCE(date3,date2,date1,date0,dateStart),date4),
    DATEDIFF(day, COALESCE(date4,date3,date2,date1,date0,dateStart),date5),
    DATEDIFF(day, COALESCE(date5,date4,date3,date2,date1,date0,dateStart),date6),
    DATEDIFF(day, COALESCE(date6,date5,date4,date3,date2,date1,date0,dateStart),date7)
    FROM temp

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Need to add MMM-yyyy to end of file in exp.builder-SSIS

    Jeff Moden - Monday, April 23, 2018 4:53 PM

    ZZartin - Monday, April 23, 2018 3:31 PM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Desperation on the Forums

    Jeff Moden - Tuesday, April 17, 2018 6:01 AM

    Steve Jones - SSC Editor - Monday, April 16,...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor - Wednesday, April 11, 2018 11:05 AM

    Luis Cazares - Wednesday, April 11,...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Ed Wagner - Thursday, March 29, 2018 12:49 PM

    Lynn Pettis - Thursday, March 29, 2018 11:48 AM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How would you parse 000.024.000 into 24H?

    Obscure variation

    REPLACE(LTRIM(REPLACE(REPLACE(REPLACE([value],'000.',''),'.000',''),'0',' ')),' ','0')+'H'

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: sql query to get code with max rank


    SELECT a.UserAccounts,a.AccountType,a.BillingAccountKey,b.BillingCode,b.[Rank]
    FROM #UserAccount a
    CROSS APPLY (SELECT TOP (1) t.BillingCode,r.[Rank]
    FROM #BillingTransactions t
    JOIN #BillingCodeRank r ON r.BillingCode = t.BillingCode
    WHERE...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Importing Loads of Fixedwidth flatfiles

    Jeff Moden - Thursday, February 22, 2018 6:46 AM

    stiej1977 - Thursday, February 22, 2018 2:31 AM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Importing Loads of Fixedwidth flatfiles

    Jeff Moden - Wednesday, February 21, 2018 2:29 PM

    ZZartin - Wednesday, February 21, 2018 12:49 PM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    drew.allen - Thursday, February 22, 2018 1:28 PM

    Finding the complement of a set by changing an equal to a not equals in...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Reporting Service don´t export to excel

    Check the output row count.
    IIRC Reporting Services Excel renderer has a worksheet row limit (circa 65K) and will not render if the number of rows exceeds that limit

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Using Hex values

    Jeff Moden - Friday, February 16, 2018 8:45 AM

    Another possibility...

     SELECT  Original = hv.HexValue
            ,Final    = CONVERT(BINARY(4),REVERSE(CONVERT(BINARY(4),(hv.HexValue))))
       FROM (--==== This is...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 271 through 285 (of 3,544 total)