Viewing 15 posts - 1 through 15 (of 38 total)
ARPRINCE wrote:ScottPletcher wrote:Your query has some redundancy in it. You are selecting:
Yes- thank you!
I don't think ScottPletcher wrote that - lol
I'm so sorry, my bad for the...
February 14, 2023 at 3:19 pm
February 14, 2023 at 2:24 pm
ARPRINCE,
Have you looked at the query plans for the two queries? The LEFT JOIN method is doing a full table scan per join. That could be a (big) performance...
February 13, 2023 at 8:49 pm
Set up some data (you should have done this when asking the question)[/
Thank you and you are right, will put in data script in the future.
February 13, 2023 at 8:03 pm
Thank you all!
Sorry but I made a mistake on my original posting. Revised DATA representation is below
IF OBJECT_ID('tempdb..#TestTable') IS NOT NULL
...
February 13, 2023 at 8:02 pm
There will only be 3 items but an order can have either 1, 2 or all 3 items.
So the final result will always have the 5 columns --> ID, OrderNo,...
February 13, 2023 at 6:36 pm
Just an update. This went live over a week ago.
[C] SQL -- TR -- [OP] SQL
I didn't need to reconfigure TR from scratch, this was a back up plan...
May 4, 2022 at 3:16 pm
I figured it out just now after reading your response.
I was developing the report on my local machine. I changed the SPROC to include the UniqueID field however, I forgot...
August 3, 2021 at 6:51 pm
Thanks all! The OUTER APPLY was very helpful. Will keep in mind proper posting etiquette in the future.
April 7, 2021 at 4:03 pm
OK I did a LEFT JOIN into a temp table and used CTE with ROW_NUMBER() OVER PARTITION BY taking only ROW=1
Maybe there's a better way?
April 1, 2021 at 10:52 pm
After several tuning, it looks like retention numbers lowers down the count but as you can see, it still creeps up.
September 10, 2020 at 7:43 pm
Well it looks like it is still increasing even when I changed that from 500,000/20,000.
Will look at decreasing in half Transaction retention 48 to 24 and History retention 24 to...
September 9, 2020 at 12:36 am
So I tried different values for Transaction and Commands. It looks like it is still increasing. Will play around some more.
September 8, 2020 at 1:55 pm
Our network admin created a SQL 2017 HA cluster (vmware using shared disks seetings - 2 nodes). He takes care of the hardware I take care of the SQL. Anyway,...
September 4, 2020 at 8:02 pm
Viewing 15 posts - 1 through 15 (of 38 total)