Viewing 5 posts - 31 through 35 (of 35 total)
So this will first look to see if the operator is '>', if it is then it will work out if the value is greater than the threshold and make...
October 28, 2015 at 10:24 am
I have worked it out! It was something to do with a later statement being CAST().
Thanks everyone.
October 28, 2015 at 4:54 am
I have stripped some of the code out that is irrelevant but here is what its doing.
IF OBJECT_ID('tempdb.dbo.##TempTable1', 'U') IS NOT NULL DROP TABLE ##TempTable1
SELECT
SUM(CASE WHEN [Measure] = 'XXX'...
October 28, 2015 at 3:03 am
Here is the design view of the audit table. I am putting the data into the value field.
October 27, 2015 at 10:23 am
Thank you so much for this response! Worked perfectly and the first time I have used a cross join 🙂
October 22, 2015 at 8:57 am
Viewing 5 posts - 31 through 35 (of 35 total)