Viewing 15 posts - 3,121 through 3,135 (of 7,609 total)
If you want to limit the delimiters to strictly:dot, comma, underscore and space, in the code below, change:
PATINDEX('%[^A-Z0-9]%'
to
PATINDEX('%[.,_ ]%'
SELECT
CASE...
October 8, 2018 at 2:54 pm
October 7, 2018 at 6:00 pm
Yes, they are the same in SQL Server.
SQL chose not to treat extra decimal positions as en error, instead it implicitly rounds to the stored scale. I assume...
October 5, 2018 at 2:36 pm
Fwiw, I usually stick to sp_refreshview for views, and only use the broader module proc when I need to.
October 5, 2018 at 2:32 pm
October 5, 2018 at 12:26 pm
October 5, 2018 at 11:01 am
constraints
- PERIODYTD date is always greater or equal to PERIOD
- difference between the...
October 5, 2018 at 9:50 am
Yes, you can combine them into one integer and get them back. The int value will most likely be negative, I don't know if that matters for you.
The...
October 4, 2018 at 3:35 pm
If you (almost) always look up on tableB by the MName, then cluster the table on that. That would prevent a full scan of the table from happening every time...
October 4, 2018 at 2:29 pm
October 4, 2018 at 8:43 am
Isn't this the third iteration of the same essential q? Why do you keep re-posting the same q??
October 3, 2018 at 3:49 pm
October 3, 2018 at 3:47 pm
I suggest just this. If that still performs poorly, we'll have to look at the view itself and tune it.
DECLARE @StartDate date = '01-01-2018'
,...
October 3, 2018 at 3:41 pm
SELECT
EmployeeId, Forename, Surname, DateOfBirth, leaver, EmployeeStartDate, LeftDate
FROM (
SELECT *, ROW_NUMBER() OVER(PARTITION BY EmployeeId
ORDER...
October 3, 2018 at 3:15 pm
Viewing 15 posts - 3,121 through 3,135 (of 7,609 total)