Viewing 15 posts - 241 through 255 (of 2,645 total)
Have you checked it returns the same results?
December 12, 2023 at 6:27 pm
You are thinking LEFT JOIN works like OUTER APPLY (it doesn't). You can rewrite the first query using OUTER APPLY instead of LEFT JOIN:
SELECT Grades.[Name] AS Grade,
...
December 12, 2023 at 4:46 pm
I asked ChatGPT:
WITH RankedEmployees AS (
SELECT
employee_id,
employee_name,
department,
joining_date,
...
December 12, 2023 at 10:30 am
This appears to be a classic "Next_ID" table and I find it difficult to understand why anyone would be using such a thing in this day and age, especially...
December 11, 2023 at 4:51 pm
I would indent the query like this:
FROM CHG
LEFT JOIN CAMCHARG CC
LEFT JOIN CAMRULE CR
...
December 9, 2023 at 2:43 am
Look at the files on the drive and see if there is a large, obsolete file(s) (perhaps old backups?).
Depending on the version of SQL Server, you...
December 8, 2023 at 10:05 am
Look at the files on the drive and see if there is a large, obsolete file(s) (perhaps old backups?).
Depending on the version of SQL Server, you might also...
December 8, 2023 at 2:58 am
Hi,
I am not very familiar about how sql server works behind the scenes but could it be that my query results are being saved somewhere on my local drive...
December 7, 2023 at 11:13 pm
Just to add to the previous comments. I upgraded a system from SQL 2012 to SQL 2019 RDS on AWS. One of the most impactful actions after identifying...
December 7, 2023 at 5:23 pm
Just to add to the previous comments. I upgraded a system from SQL 2012 to SQL 2019 RDS on AWS. One of the most impactful actions after identifying slow-running queries...
December 5, 2023 at 11:39 pm
SELECT
CASE
WHEN DATEDIFF(SECOND, crtDte, GETDATE()) < 60 THEN 'Just Posted'
...
December 3, 2023 at 2:22 am
Jonathan AC Roberts wrote:UPDATE MM2WO
SET sDesc = TRANSLATE(sDesc, '&<!>!-=', ' ')
WHERE ...https://learn.microsoft.com/en-us/sql/t-sql/functions/translate-transact-sql?view=sql-server-ver16
TRANSLATE not available in 2016.
Oh yes, I was looking...
November 28, 2023 at 7:09 pm
UPDATE MM2WO
SET sDesc = TRANSLATE(sDesc, '&<!>!-=', ' ')
WHERE ...
https://learn.microsoft.com/en-us/sql/t-sql/functions/translate-transact-sql?view=sql-server-ver16
November 28, 2023 at 6:54 pm
Check the 3 underlying views. If they're all pulling from the same tables, it might be worth while to crib some of the code and write a...
November 27, 2023 at 7:58 pm
Check the 3 underlying views. If they're all pulling from the same tables, it might be worth while to crib some of the code and write a separate query,...
November 27, 2023 at 5:41 pm
Viewing 15 posts - 241 through 255 (of 2,645 total)