Viewing 15 posts - 46 through 60 (of 162 total)
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
One way to do it would be to put a "WorkloadType" column on your Orders table, and keep that field updated using the triggers you use now, rather than copying...
March 24, 2015 at 9:21 am
SELECTm.ValueField,
m.FilterColumn,-- Either "6" or "13"
r.Result
FROMMyTable m
JOIN(
SELECTt6.CategoryCode,
t13.ValueField - t6.ValueField AS Result
FROM(SELECT CategoryCode, ValueField FROM MyTable WHERE FilterColumn = 6) t6
JOIN(SELECT CategoryCode, ValueField FROM MyTable WHERE FilterColumn = 6) t13
ONt13.CategoryCode = t6.CategoryCode
)...
March 24, 2015 at 9:04 am
To calculate "average duration", convert the duration for each record to milliseconds, then average the number of milliseconds for the group. Once you have that, then add that to...
December 12, 2013 at 5:33 pm
I just realized that the ROW_NUMBER() function is included in the loading script, which will not work in 2K5. This would work instead:
SELECT(TensValue * 10) + UnitsValue
FROM(SELECT DISTINCT colid...
December 12, 2013 at 5:14 pm
Viewing 15 posts - 46 through 60 (of 162 total)