SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Case When querry
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

julius.delorino
Starting Member

Philippines
29 Posts

Posted - 06/05/2012 :  09:34:44  Show Profile  Reply with Quote
Good day sir, may i ask for your assistance, is this possible
using case when function;

case when Var1 ='1' and Var2='30' then 1 else 0 end

how can you write in SQL 2008?

thank you for your help, more power guys!

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 06/05/2012 :  09:49:01  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
That looks good.
Put it in place of a value and it shuold work.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000