Viewing 15 posts - 871 through 885 (of 3,957 total)
dwain.c (1/21/2014)
mickyT (1/21/2014)
dwain.c (1/21/2014)
mickyT (1/21/2014)
gcresse (1/21/2014)
January 21, 2014 at 8:52 pm
MickyT - Using only your query that returns ending balance against mine that does the same, our two queries return a different number of rows Here's my modification of...
January 21, 2014 at 8:42 pm
Or you could put this convoluted Gender computation into a computed column.
January 21, 2014 at 7:54 pm
mickyT (1/21/2014)
dwain.c (1/21/2014)
mickyT (1/21/2014)
gcresse (1/21/2014)
January 21, 2014 at 7:30 pm
TheSQLGuru (1/21/2014)
dwain.c (1/21/2014)
TheSQLGuru (1/21/2014)
An assignment is defined as a continual period...
January 21, 2014 at 7:08 pm
mickyT (1/21/2014)
gcresse (1/21/2014)
January 21, 2014 at 7:04 pm
Ooops! I didn't see the second page of posts! Guess I got too into the fun problem.
Here's how to use LAG to get the Beginning Balance (from my...
January 21, 2014 at 7:03 pm
Since the ROWS (window frame) facility added in SQL 2012 supports doing the running totals you need, many would suggest that you use it instead of a Quirky Update (QU),...
January 21, 2014 at 6:57 pm
TheSQLGuru (1/21/2014)
An assignment is defined as a continual period of employment...
January 21, 2014 at 6:10 pm
I've taken the liberty of putting your sample data into a consumable form, which if you read up on forum posting etiquette (links abound for this) you'll find will be...
January 21, 2014 at 6:02 pm
From my perspective, the answer is quite simple: Don't use a VIEW!
Just keep your code in-line and use the parameter passed in through whatever means you've designed (presumably from the...
January 21, 2014 at 5:45 pm
I think you just need to alter your first code snippet as follows (forget about timestamp) and use a CASE:
UPDATE @TEMP
SET TheStatus = CASE TheStatus WHEN 1 THEN 2 WHEN...
January 21, 2014 at 5:39 pm
allarmi and sneumersky:
I hope you found my ramblings useful. In the future, one can hope that error handling capabilities will be improved upon but for now it is what...
January 21, 2014 at 5:35 pm
pietlinden (1/21/2014)
Dwain,One thing is missing though... the Symptom name disappeared.
Symptom name is just the column name right?
Focus on the code I've embedded in the (SQL) string creation to...
January 21, 2014 at 5:32 pm
MickyT's FUNCTION should work like this with your table replacing SampleData:
WITH SampleData AS
(
SELECT code=CAST('12333345566689333' AS NVARCHAR(4000))
UNION ALL SELECT '12333345566689'
)
SELECT *
FROM SampleData
CROSS APPLY...
January 21, 2014 at 2:58 am
Viewing 15 posts - 871 through 885 (of 3,957 total)