Viewing 15 posts - 976 through 990 (of 13,838 total)
Here is a version with a sequence number which you should be able to adapt
DROP TABLE IF EXISTS #Leave;
CREATE TABLE #Leave
(
EmployeeId INT
...
March 30, 2023 at 3:23 pm
The sample data you have provided has no column which provides ordering. Without a column to order by, a T-SQL solution is not possible.
March 30, 2023 at 3:08 pm
Compare the execution plans in both environments. Are they identical?
Are the hardware, o/s and SQL Server versions the same?
Have you checked for blocking?
March 30, 2023 at 8:06 am
Does your view definition include 'WITH SCHEMABINDING'?
March 28, 2023 at 8:29 am
Thanks Jeffrey, I'd forgotten that CONCAT_WS() even existed.
March 28, 2023 at 8:25 am
Is this the extension which you are trying to add?
https://learn.microsoft.com/en-us/sql/ssdt/release-notes-ssdt-2019?view=sql-server-ver16
March 28, 2023 at 8:23 am
Simple and clear, quite impressive. Thanks for posting back.
March 27, 2023 at 9:01 am
I already shared the screenshot of the table and query for the result i am expecting
If you believe this to be a valid and comprehensive response to my request,...
March 26, 2023 at 1:08 pm
I think I'd switch the logic around a bit.
March 26, 2023 at 11:28 am
Please be more specific than 'it doesn't work'.
We don't have access to your data, nor do we understand the underlying logic behind your query.
If you can provide some sample data,...
March 26, 2023 at 11:16 am
Time for me to check this out. As usual, there was an age between the release of VS2022 and its SSIS extension.
Or maybe not! It's still in preview and looks...
March 24, 2023 at 2:33 pm
Your post raises some interesting points.
I can only take the senders word for it.
I wouldn't, but your way leads to an easier life!
Would you be prepared to share the code...
March 24, 2023 at 8:51 am
The FORMAT() function performs notoriously poorly. If you are processing a lot of data, I suggest you remove it and find another way (either in code, or using Excel or...
March 23, 2023 at 4:35 pm
It may be an integer-division issue.
Try multiplying by 100.0 first, to force a decimal calculation:
Successful Picks * 100.0 / Total Picks
Note also that you have misspelled 'successful'.
March 23, 2023 at 1:04 pm
Viewing 15 posts - 976 through 990 (of 13,838 total)