Viewing 15 posts - 856 through 870 (of 2,645 total)
My present solution approach, in Tableau, was predicated on joining primary data table, containing rows representing the submissions, to the result of the query I've been trying to develop...
June 9, 2021 at 9:35 am
Also, why do we need to do SELECT * FROM dbo.tbTestThree t3 -- Cant I select only the required column and still use EXIST?
It doesn't matter what you select...
June 9, 2021 at 9:18 am
Why is it difficult to incorporate it into your solution?
June 8, 2021 at 9:31 pm
Not sure I quite understand what results you want but I think this might do:
DROP TABLE IF EXISTS #tmp2
CREATE TABLE [#tmp2] (
...
June 8, 2021 at 5:22 pm
I would write it using EXISTS instead of INs. It's easier if you use table aliases.
Then look at increasing the performance by adding indexes.
CREATE PROCEDURE dbo.spTest
(
...
June 8, 2021 at 10:53 am
Came across an actual query which gave me an idea about another version of the test script for DISTINCT vs. GROUP BY.
I tried it and they were about the...
June 8, 2021 at 9:22 am
There is no difference in the execution time in this case.
In this case - yes. Because GROUP BY is applied to the output of the SELECT - making...
June 3, 2021 at 1:00 pm
Well that didn't demonstrate any performance improvement from using group by.
It explained where the performance improvement comes from.
If you want to see it - just rewrite...
June 3, 2021 at 9:57 am
This should speed the query up
IF OBJECT_ID('tempdb..#CTE','U') IS NULL
DROP TABLE #CTE
SELECT *
INTO #CTE
FROM (SELECT Po.GlobalPnId ,
...
June 1, 2021 at 4:48 pm
Well that didn't demonstrate any performance improvement from using group by.
It explained where the performance improvement comes from.
If you want to see it - just rewrite any of...
May 30, 2021 at 9:18 pm
The important points are these:
- DISTINCT is pretty nasty beast. There is no excuse for lazy programming using it, even if "everyone does it".
I don't see...
May 30, 2021 at 8:21 am
The important points are these:
- DISTINCT is pretty nasty beast. There is no excuse for lazy programming using it, even if "everyone does it".
I don't see why/how GROUP...
May 29, 2021 at 10:52 am
I would attempt to speed the query up with the use of temporary tables, try this for starters:
IF OBJECT_ID('tempdb..#BCMasterydaily', 'U') IS NOT NULL
...
May 28, 2021 at 11:36 pm
You will get better performance if you write 2 statements, an update followed by an insert (where not exists)
Performance Tip: The conditional behavior described for the MERGE statement works best when...
May 25, 2021 at 4:17 pm
If you look at the message on the INSERT it says:
"The query had to wait 1164 seconds for MemoryGrant during execution"
That's nearly 20 minutes.
https://techcommunity.microsoft.com/t5/sql-server/understanding-sql-server-memory-grant/ba-p/383595
Try adding this to the end...
May 19, 2021 at 11:39 pm
Viewing 15 posts - 856 through 870 (of 2,645 total)