Viewing 15 posts - 46 through 60 (of 462 total)
Chris Morris-439714 (1/27/2010)
Guess the OP didn't like the awkward questions there, Nabha - like which aggregate function to use for date. Since the same questions have arisen in this thread,...
January 27, 2010 at 8:31 am
Not sure if I am missing something here but isnt it the same query that was posted earlier here
I guess discussion was already started there!
January 27, 2010 at 8:00 am
Not sure if it would behave differently in linked server context!
DROP TABLE #S1
DROP TABLE #S2
CREATE TABLE #S1(ID int, VERSION int)
CREATE TABLE #S2(ID int, VERSION int)
INSERT INTO #S1 VALUES(1, 1)
INSERT INTO...
January 27, 2010 at 12:31 am
dean 62842 (1/26/2010)
Essentially I need the job to match todays date in the database and then add...
January 26, 2010 at 9:12 pm
May be the sum is giving a negetive value and they wanted to show absolute(positive value). Have a look at this,
SELECT -isnull(1, 0)
SELECT -isnull(-1, 0)
January 26, 2010 at 10:52 am
Not so elegant but this is what I could think of.. there could be an elegant way of doing it.
SELECT CONVERT(datetime, STUFF(REPLACE(<DateColumn>, '.', '/'), LEN(<DateColumn>)
- CHARINDEX('/',...
January 26, 2010 at 3:32 am
Will this do?
SELECT DISTINCT * FROM RANGES R1
WHERE EXISTS (SELECT 1
FROM RANGES R2
WHERE R1.ID = R2.ID
AND R1.Code = R2.CODE
AND ABS(R1.DOS -...
January 25, 2010 at 10:11 pm
RPSql (1/25/2010)
January 25, 2010 at 10:39 am
Are you sure the dates are only in these two formats?
'25/01/2010'
'25.01.2010'
January 25, 2010 at 10:06 am
Lorna-331036 (1/25/2010)
January 25, 2010 at 6:48 am
Gianluca Sartori (1/25/2010)
Maybe I'm having a bad monday morning, but I don't see what the question has to do with the subject of the thread.
nothing actually 😛 (I guess so)...
January 25, 2010 at 4:33 am
Select convert(datetime, '25.01.2010', 104)
January 25, 2010 at 4:28 am
i think expected result is wrong!(isadmin would appear in the result but not iscont)
will this do?
select eno, CASE WHEN SUM(CASE WHEN isEmp = 1 THEN 1 ELSE 0...
January 25, 2010 at 4:21 am
miss.delinda (1/23/2010)
tq very much to both of you
UR welcome ..:-)
January 23, 2010 at 10:11 pm
The "bad" thing about it: since CTEs made it so easy to use subqueries I think I tend to not spending enough time on trying to find an easier solution...
January 23, 2010 at 10:09 pm
Viewing 15 posts - 46 through 60 (of 462 total)