August 14, 2012 at 1:50 pm
buntyteg (8/14/2012)
in correct answer -1,1 is correctbut how 25 is correct
means to say... in bit datatype how we can store 25 (2 digit) value
??????
If it helps, think of it this way:
DECLARE @BitValue BIT;
SET @BitValue = CASE WHEN ValueToConvert = 0 THEN 0 ELSE 1 END;
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 15, 2012 at 7:02 am
Nice question. Made me pause for a moment. Thanks!
August 15, 2012 at 12:57 pm
Thanks for an easy one, Wayne!
August 15, 2012 at 11:21 pm
Great question, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 29, 2013 at 6:32 am
good questions......
manik123
**********
Manik
You cannot get to the top by sitting on your bottom.
Viewing 5 posts - 31 through 34 (of 34 total)
You must be logged in to reply to this topic. Login to reply