Viewing 15 posts - 316 through 330 (of 748 total)
Are you seeing any evidence of contention (PAGELATCH waits in tempdb)? If not and it's just a space issue, you probably just want to increase the size of those 12...
August 10, 2022 at 3:08 pm
August 10, 2022 at 2:33 pm
Maybe there's also an lstEquipment procedure? Try it with the dbo schema -- i.e.,
dbo.lstEquipment
You should always preface/qualify object references w/ schemas.
I didn't because I didn't know the...
August 10, 2022 at 2:25 pm
It could -- You tell us.
Execute the select in the query in the view without the WHERE clause. Does it return anything? If not, then there is no data, period.
If...
August 10, 2022 at 1:24 pm
Your CTE does not tell the server to get only the row with the max pc_id. It tells the server to get the max pc_id for each combination of pcs.pc_desc,...
August 9, 2022 at 1:25 pm
If we respond with the following is how you return the average # of days a physician had cases, is that useful to you?
Or this?
Doctor ...
August 8, 2022 at 7:00 pm
A link that further explains what, how, & why to provide DDL, sample data, & expected results for the sample data: How to post code problems
August 8, 2022 at 4:39 pm
That worked. I don't know why I struggled so much getting that syntax right.
Thank you, Arthur!
August 5, 2022 at 2:34 pm
Convert(101) makes NO sense when reviewing code for date formatting problems - unlike the format which is highly understandable (and maintainable). We all agree performance is important, but not at...
August 5, 2022 at 2:22 pm
Yes, that tool could help you find stored procedures that reference the table, as could Jeff's query, or right-clicking on the table in SSMS & selecting "View Dependencies"
But once you...
August 3, 2022 at 6:08 pm
The WHERE clause has to precede the GROUP BY CLAUSE -- where filters data before it is aggregated
SELECT...
FROM...
JOIN...
WHERE...
GROUP BY...
HAVING...
ORDER BY...
August 3, 2022 at 1:04 pm
Why not use STRING_SPLIT?
The spaces around the slash complicate it slightly since STRING_SPLIT accepts only a single-character delimiter, but as long as the spaces are consistent, you can handle that...
July 28, 2022 at 4:30 pm
I suspect you meant "...relational databases are not going away."?
July 27, 2022 at 6:46 pm
MySQL functions --
DATE_SUB(CURDATE(), INTERVAL 7 DAY)
-- won't be of much use on SQL Server 2019.
July 26, 2022 at 2:19 pm
Viewing 15 posts - 316 through 330 (of 748 total)