Viewing 15 posts - 3,436 through 3,450 (of 13,874 total)
the upgrade has created some database schema in the back end
Please explain what you mean by this. A new database schema should not do anything bad, per se.
July 31, 2019 at 7:35 pm
That requirement looks suspect to me.
Do (a) and (b) both have to be true (AND), or is it a case of one or the other (OR)?
July 31, 2019 at 1:15 pm
One benefit I see is to do with vertical alignment.
SELECT col1
,LongCol2
,LongerCol3
...
July 30, 2019 at 1:55 pm
My testing agrees with yours ... line 1 appears to be the line just before CREATE PROC
July 24, 2019 at 10:11 pm
PolicyType is Pascal case, not camel case, which would be policyType.
I guess I'm lucky: I've been reading code without underscores for so long that I find it just as easy...
July 24, 2019 at 8:56 pm
You would use TINYINT with 1 or 0 so you can do a SUM aggregate. If you used Y/N, couldn't you get the same result by using some function to...
July 24, 2019 at 7:51 pm
Not tested, but the syntax will be more like this:
(SafetyBaseline == FALSE && RegulationBaseline == FALSE && EnvironmentSafetyBaseline == FALSE && EnvironmentSecurityBaseline == FALSE) ? IsActive = False: IsActive =...
July 24, 2019 at 1:53 pm
Just to be sure, it wasn't meant as any kind of slam for missing something, Phil. I absolutely thought it excellent emphasis on a problem that would eat...
July 23, 2019 at 6:24 pm
Jeff, your advice was so excellent, I clearly didn't bother reading it properly 🙂
July 23, 2019 at 5:02 pm
What do you mean by this?
T has 57,000 distinct rows
I mean, why did you use the word 'distinct'?
July 23, 2019 at 2:19 pm
Following on from Jeff's excellent advice, I'd like to add a little more. I'd suggest removing all spaces from your column names ... makes your code much less cumbersome because...
July 23, 2019 at 2:06 pm
Declaring variables as Varchar without an explicit length is considered bad practice and can lead to unexpected results.
Use VARCHAR(n) (where n is the longest expected length) instead.
July 23, 2019 at 12:24 pm
And if you're at all OCD with your database object names (or maybe you like to check everything in to source control & therefore avoid random names), consider using extended...
July 23, 2019 at 1:14 am
You need to put your defaults in parentheses, eg:
DEFAULT ('Y')
July 23, 2019 at 1:12 am
In stored procedure Procedure SP_FlagTests_CY, there is a reference to a column BaseSolvencyBuffer_CYMinus1, and that column cannot be found in the context of the query.
If you show us the content...
July 22, 2019 at 8:02 pm
Viewing 15 posts - 3,436 through 3,450 (of 13,874 total)