Viewing 15 posts - 46 through 60 (of 166 total)
SELECT P_Number,
Date,
MAX(CASE WHEN Extension = '' THEN Reading ELSE '' END) + ';' +
MAX(CASE WHEN Extension = 'P' THEN Reading ELSE '' END) + ';' +
January 31, 2019 at 11:20 am
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...
January 28, 2019 at 4:48 pm
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. ...
January 23, 2019 at 9:29 am
January 17, 2019 at 5:34 pm
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 --...
January 16, 2019 at 2:43 pm
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,...
December 21, 2018 at 7:19 am
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...
December 11, 2018 at 3:06 pm
November 30, 2018 at 11:27 am
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...
November 30, 2018 at 11:10 am
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...
November 29, 2018 at 12:32 pm
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.
November 29, 2018 at 11:54 am
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...
November 19, 2018 at 4:29 pm
November 16, 2018 at 3:12 pm
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...
February 21, 2018 at 3:34 pm
Viewing 15 posts - 46 through 60 (of 166 total)