Viewing 15 posts - 526 through 540 (of 2,645 total)
I never really nest joins like that but if you do you can only access fields from the join on the next level above.
Create some tables:
DROP TABLE...
February 15, 2023 at 8:12 pm
The OP explicitly included leading zeroes in the PK. Those are gone in the table because ChatGPT failed to recognize that as a string. It would have similar issues...
February 15, 2023 at 7:32 pm
Then after you wrote this I thought I'd see what ChatGPT could do to create a table with the data:
So I pasted the table in the question into...
February 15, 2023 at 5:36 pm
That's nice but it's going to silently fail and produce the incorrect total call duration if it adds up to more than 23:59. You've also stolen the thunder of...
February 15, 2023 at 5:25 pm
Create some test data:
DROP TABLE IF EXISTS #temp
GO
SELECT *
INTO #temp
FROM (VALUES
(001, CONVERT(DATE,'2023-02-23'), '123', 'a@a.com', '10:23:00.000', 500, 'W'),
(002, '2023-02-23', '246', 'b@b.com', '09:36:00.000', 456, 'W'),
(003, '2023-02-22', '123', 'a@a.com',...
February 15, 2023 at 3:46 pm
Interesting... the first time I clicked on it, it took me to a page selling hair-care products with that picture on it. I just clicked on it again and,...
February 14, 2023 at 4:37 pm
It is just a link that has the same photo as the avatar of person who posted the message taken from ChatGPT.
I'm thinking that may have been their...
February 14, 2023 at 3:23 pm
ScottPletcher wrote:Your query has some redundancy in it. You are selecting:
Yes- thank you!
I don't think ScottPletcher wrote that - lol
February 14, 2023 at 3:14 pm
Dealing with a super huge table that is partially partitioned can be a challenging task for many database administrators and developers. However, with the right approach and...
February 14, 2023 at 3:09 pm
If you get your answers from ChatGPT you should say so.
Ha! I was just coming down to say something similar. I suspect we're going to be...
February 14, 2023 at 1:02 pm
Dealing with a super huge table that is partially partitioned can be a challenging task for many database administrators and developers. However, with the right approach and tools, you...
February 14, 2023 at 12:17 pm
You need to first work out which query is taking the longest then look at optimising that.
You could put some logging in the query to write to a table how...
February 14, 2023 at 1:29 am
Where are the IO stats?
**************************************** cross tab
Table '#TestTable'. Scan count 5, logical reads 40651, physical reads 0, page server reads 0, read-ahead reads 0, page server read-ahead reads 0,...
February 13, 2023 at 11:20 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 9:41 pm
Viewing 15 posts - 526 through 540 (of 2,645 total)