Viewing 15 posts - 4,291 through 4,305 (of 13,855 total)
UPDATE Number_Codes
SET
CODE1 = ISNULL(CODE1, 999)
, CODE2 = IIF(CODE1 IS NOT NULL AND CODE2 IS NULL, 999, CODE2)
, CODE3 = IIF((CODE1 + CODE2) IS NOT NULL...
July 2, 2018 at 5:35 am
First of all, I appreciate your input. It feels like Data...
July 2, 2018 at 5:17 am
June 29, 2018 at 12:38 pm
Here's another way:
DROP TABLE IF EXISTS #Products;
CREATE TABLE #Products
(
Product VARCHAR(50) PRIMARY KEY CLUSTERED
, Type1 VARCHAR(50)
, Type2 VARCHAR(50)
, Type3 VARCHAR(50)
, Type4 VARCHAR(50)
);
INSERT #Products
June 29, 2018 at 12:36 pm
This gives the same accuracy as your first 'exact' example:
SELECT CAST(1000000000000.123456 AS DECIMAL(29,12)) * CAST(10000.123456 AS DECIMAL(29,12))
This code helped me determine the CASTs to...
June 29, 2018 at 9:30 am
This part of the query makes no sense and should be removed. If the match conditions are true, there is nothing to update.
June 29, 2018 at 8:12 am
More input on this...
I ended up using a lot of synonyms based...
June 29, 2018 at 7:35 am
We use SSDT/Visual Studio to create SSIS packages, stored procedures, etc (so we can...
June 28, 2018 at 9:08 am
This is an odd one.
We've got 2 servers (DEV and PROD) and we have...
June 28, 2018 at 8:30 am
June 27, 2018 at 2:30 pm
sgmunson - Wednesday, June 27, 2018 1:57 PMI'll go ahead and reformat them all:
And suddenly, it becomes human-readable!
But it looks like we're...
June 27, 2018 at 2:03 pm
June 27, 2018 at 8:02 am
Rather than 'FAIL', please post the exact text of the message you see.
June 27, 2018 at 6:41 am
Viewing 15 posts - 4,291 through 4,305 (of 13,855 total)