Viewing 15 posts - 3,691 through 3,705 (of 6,036 total)
Point is:
The quiz as it's done allows ambiguity.
For value "15" there are 3 answers, each of them is right.
And Andrew is the only one who caught it.
Everyone else sucks.
P.S. You're...
August 3, 2007 at 7:50 pm
Yes, it's quite obvious that only one case should be applied.
But which one?
Computer does not do any implications.
Unless you specify the rules for it.
Andrew demonstrated the very computer-like way of...
August 3, 2007 at 4:31 pm
Poor logic!
![]()
Did you suggest CASE?
Case will pick 1st match, it will never come to the last one.
> The answer to your question, IMHO, really...
August 3, 2007 at 4:54 am
Agree.
But replace with what?
'Bizz', 'Buzz' or 'BizzBuzz'?
All three options are valid!
August 3, 2007 at 4:07 am
I like this logic!
Logic is as poor as logic of original quiz.
What was asked?
"each number evenly divisible by 3, substitute 'Bizz' For each number evenly divisible by 5, substitute 'Buzz'...
August 3, 2007 at 3:20 am
Or you can set IDENTITY_INSERT ON and manually insert a row with ID = 32999.
![]()
Don't forget to set IDENTITY_INSERT back OFF and delete that...
August 2, 2007 at 7:28 pm
DBCC CHECKIDENT
August 2, 2007 at 7:27 pm
Join result of rubes's query to Table2 on (ID + LogDate) and get desired result.
August 1, 2007 at 6:10 pm
Depends on performance of your hard drives.
It needs to allocate 200GB.
So, it will take some time.
July 31, 2007 at 8:09 pm
For text datatype you need to use PATHINDEX instead of CHARINDEX and SUBSTRING instead of LEFT.
Check Books Online for the syntax.
CASE goes right after SELECT.
July 31, 2007 at 7:21 pm
John,
to avoid errors when pattern cannot be found in string use this:
CASE WHEN CHARINDEX('substring', Value) = 0
THEN Value
ELSE LEFT(Value,CHARINDEX('substring', Value)-1)
END
July 31, 2007 at 3:55 pm
Kenneth,
forgive those who don't have anything to say but love to show up anyway. ![]()
> I also know that you know what I mean,...
July 31, 2007 at 3:06 am
Try this:
....
FROM employee E
LEFT JOIN vw_Attendance_Report hj ON E.Empcode = hj.Empcode
RIGHT JOIN cms_date kj on kj.day_month =datepart(dd,FirstAccessDateTime)
order by E.empcode , kj.day_month
July 30, 2007 at 11:48 pm
Viewing 15 posts - 3,691 through 3,705 (of 6,036 total)