Viewing 15 posts - 16 through 30 (of 1,385 total)
That's a nice looking query Ken. The OP's query used "SELECT ... INTO #TEMP1" which could be a bottleneck to a larger process imo. Of course, it's not possible to...
December 20, 2024 at 5:05 pm
How could I last 15 minutes of activity pulling the unique record per minute
Scroll up a few posts and see Ken McKelvey's reply. Once t_stamp has been converted to...
December 13, 2024 at 2:24 pm
Well, I admit I've never used NOLOCK in a query. There hasn't been any project where NOLOCK is/was clearly required. The article doesn't actually put forward any performance metrics or...
December 12, 2024 at 9:21 pm
That would be true if working with a Normal date, but the Unix-Timestamp stored in T_stamp needs converted I'm thinking.
Yep, t_stamp stored as BIGINT could be converted to DATETIME2(3). ...
December 11, 2024 at 1:50 am
Or the paradox is an enigma wrapped in a riddle. The article is based on a musing which is factually unconfirmed. Or maybe I missed the convincing part(s)
December 9, 2024 at 2:15 am
<b>...</b> the correct criteria to update only those rows that actually have a "1" in the Resolved Column of the INSERTED table.
Ah ok, this is more correct. My...
December 8, 2024 at 10:52 pm
Okay I can easily see how to update a table field after an Insert but do I use the system Inserted when creating a trigger to update a field...
December 8, 2024 at 5:29 pm
with rn_cte as (
select l.*, v.gt_one,
row_number() over (partition by Number...
December 7, 2024 at 3:01 am
The queries so far don't identify the ranges of consecutive "greater than one" rows. This query uses two ROW_NUMBER functions which both count up across PARTITION BY Number. To reset...
December 6, 2024 at 11:48 pm
Is CostKey unique in the CostKeyDeletes table? If so then making it the CLUSTERED key would be preferable. To log the process you could add an OUTPUT clause to the...
December 6, 2024 at 10:53 pm
I think this approach relies on data quality that isn't necessarily guaranteed. For instance, if the two statuses were "Presentation" moving to "Approve", the LAG()
method would catch it,...
November 27, 2024 at 8:02 pm
LAG, which compares rows within the window partition, is not strictly necessary imo. JOIN relates to a lookup table containing the values sequence. Also, I'm not a fan of ordering...
November 26, 2024 at 11:38 pm
> What difference the client is a phone? <<
Because to determine all the Tests that haven't been fully graded could require scanning a very large number of StudentGrade rows.
If,...
November 19, 2024 at 9:23 pm
Thanks for getting back to me.
I have always been hesitant to use a flag in one table when I could get that same information using a database query. Since...
November 19, 2024 at 8:32 pm
To maintain each country's local time, we have collected their respective time zones. Initially, everything worked fine. However, as time passed, some countries requested changes to their time zones...
November 19, 2024 at 1:55 pm
Viewing 15 posts - 16 through 30 (of 1,385 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy