Viewing 15 posts - 856 through 870 (of 2,648 total)
thanks for the suggestions, I will try these and update the results.
Can we do updates in batches? If I have total record count of 10 million than what should...
June 11, 2021 at 7:29 pm
It has a clustered index but clustered index column is not included in where clause nor in the list of columns getting updated.
Does dropping a clustered index before update...
June 11, 2021 at 1:33 pm
What columns are on the clustered index?
Do you have any other indexes on the table?
You know you could write the two update statements to be just one update statement?
June 11, 2021 at 12:53 pm
I tried that and it ran (unlike when I put the option in other parts of the code) but I still got the same error. Any ideas as to...
June 10, 2021 at 10:26 am
It would help if you could show us the queries with information on the number of rows in each table.
June 9, 2021 at 11:47 pm
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
Viewing 15 posts - 856 through 870 (of 2,648 total)