Forum Replies Created

Viewing 15 posts - 46 through 60 (of 166 total)

  • RE: Merge Multiple Rows into a logic

    SELECT    P_Number,
        Date,
        MAX(CASE WHEN Extension = '' THEN Reading ELSE '' END) + ';' +
        MAX(CASE WHEN Extension = 'P' THEN Reading ELSE '' END) + ';' +

  • RE: Get count for changed value

    I'll present two methods that I found to get the data.  Thanks for posting the DDL; it was very helpful to have something to use for testing.  If my solutions...

  • RE: What is Alternative of numbered_procedures?

    I don't understand what you mean by "versioning purpose".  Perhaps others don't either, which may be the reason that no one else has responded to your question.  Please explain further. ...

  • RE: Let SQL do the work ?

    onemangathers - Thursday, January 17, 2019 10:42 AM

    To 

  • RE: Let SQL do the work ?

    If you know the names of the 35 tables, you should be able to build your table first, with the 35 column names you want to use.
    CREATE    --...

  • RE: The Full Stack DBA

    I don't think I cover the "full" stack, but I do much of it.  I don't do the networking or user administration for our company, or work on the website,...

  • RE: Missing Data

    Thank you for the sample data and for the desired output.  Those are much appreciated.
    I still don't understand how the data relates.  In the #MainTable for Group1, I see...

  • RE: Need a suggestion for my SQL requirement

    fahey.jonathan - Friday, November 30, 2018 11:10 AM

    You could also look at the MERGE statement, which will do inserts, updates, and deletes...

  • RE: Need a suggestion for my SQL requirement

    You could also look at the MERGE statement, which will do inserts, updates, and deletes from a source data set to a target data set in a single statement.  There...

  • RE: Issues with filling in the blanks from a calendar table.

    From your post, it seems that you want to get records of how much time users spend on various activities.  You have a log of date/time events, and need to...

  • RE: add to variable in case statement

    I think you are trying to add the results of two different calculations.  If so, then split the calculation into two individual steps, then add the results, like this.

  • RE: Do you use custom schemas?

    Jeff's earlier message said, "If you're talking about 3 and 4 part naming in any of the code itself, caveat emptor. As databases grow, they sometimes move and you end...

  • RE: Do you use custom schemas?

    Jonathan AC Roberts - Thursday, November 15, 2018 10:18 AM

    You can't create a synonym for a database, just database objects. But...

  • RE: Do you use custom schemas?

    Jeff Moden - Thursday, November 15, 2018 8:06 AM

    roger.plowman - Thursday, November 15, 2018 5:39 AM

    November 15, 2018 at 10:11 am

    #2013709

  • RE: Find birthdays of a week

    I found this thread, and found it helpful.  I have a different solution that may help someone else.  Here is my solution.  In short,  it brings the birthdates of each...

Viewing 15 posts - 46 through 60 (of 166 total)