Viewing 15 posts - 166 through 180 (of 317 total)
ChrisM@Work (7/9/2013)
July 9, 2013 at 7:41 am
Are you looking for something like this?
DECLARE @table TABLE
(eid INT, Remarks VARCHAR(10))
INSERT INTO @table
VALUES(17074, 'OFF DAY'),(17074, 'ABSENT'),
(17074, 'Late'),(17074, 'HALFDAY'),
(17074, 'ABSENT'), (17074, 'OFF DAY')
SELECT eid ,
SUM(CASE Remarks WHEN 'OFF DAY'...
July 2, 2013 at 8:01 am
Good read. This has actually bit me in the butt before with almost the exact scenario you posted in the article.
July 2, 2013 at 7:17 am
Peter Schott (7/2/2013)
1. Variable width, if possible - something that takes advantage of the available reading area. On my laptop, tablet,...
July 2, 2013 at 7:15 am
Great question to end the week and great explanation Hugo. (I always get something from them)
And thank you for this
Hugo Kornelis (6/21/2013)
And if you're still unconvinced, run the code...
June 21, 2013 at 7:36 am
Danny Ocean (6/14/2013)
Lokesh Vij (6/13/2013)
DROP TABLE [dbo].[IndexTable]
SELECT * FROM indextable
Qotd aks about "the output of select statement", but as per the code...
June 14, 2013 at 7:51 am
Revenant (6/13/2013)
Thanks to Hugo for his as usual thorough analysis. I faced the same decision but I chose the wrong one.
+ 1
June 13, 2013 at 10:51 am
batgirl (6/12/2013)
More proof that one should not attempt QOTD before the morning dose of caffeine.
+1 Great question Hugo. I completely overlooked the hint in the title. I also seemed to...
June 12, 2013 at 6:55 am
sestell1 (6/10/2013)
Lokesh Vij (6/9/2013)
Thomas Abraham (6/8/2013)
Didn't notice the boxes were, well, boxes. So only selected one answer, which appears to be only half the correct answer.
+1
Same here, I also marked...
June 10, 2013 at 7:33 am
palotaiarpad (5/22/2013)
Arrrgggh. First thought was right! :crazy:
+1. Never should have doubted
May 22, 2013 at 7:29 am
WWDMark (5/15/2013)
kapil_kk (5/15/2013)
Lokesh Vij (5/15/2013)
I found Today's question relatively easier than yesterday. 🙂true 😛
+1 to that but I was looking for a catch somewhere in the answers though (paranoid...
May 15, 2013 at 7:08 am
Viewing 15 posts - 166 through 180 (of 317 total)