Viewing 9 posts - 91 through 99 (of 99 total)
UPDATE [tableName]
SET [datetimeColumnName] = NULL
WHERE [datetimeColumnName] = 'dateTime'
AND [firstColumn] = 'someDataHere'
This will "delete" the data in that one row's specific column.
August 16, 2013 at 7:17 am
I was one of the people who got it wrong... <facepalm/>
Even without reading the explanation, I realized my error... maybe I should drink my first cup of...
August 15, 2013 at 7:24 am
Foiled again!
Interestingly, what is on MSDN and what is in BOL is not the same! Though, I suspect what is on MSDN to be more accurate...
Great question, I have...
July 12, 2013 at 6:24 am
This is my 2 cents, but I searched through BOL (my usual default starting location for answering TSQL questions) on both LEN and REVERSE and neither helped in the "correct"...
July 8, 2013 at 12:02 pm
Typically I would add the SQL here but I'm running into a meeting...
You could join the CTE to itself (aka make it recursive) but join each row to ROW# -...
July 3, 2013 at 7:18 am
Or another approach (but extremely similar):
select IDXMRN,Problem,Code
from dbo.Diagnosis
where LEFT(CODE,3) = '491' OR LEFT(CODE,5) = '305.1'
June 24, 2013 at 10:07 am
Did you check out this blog: http://www.sqlservercentral.com/blogs/discussionofsqlserver/2012/02/15/comparing-inline-and-multistatement-table-valued-functions/? According to BOL, an inline function is a single statement, if you need to create variables then it sounds like you might need...
June 6, 2013 at 6:02 am
Viewing 9 posts - 91 through 99 (of 99 total)