Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 simple tutorial for case when then

Author  Topic 

shoab.shah
Starting Member

2 Posts

Posted - 2010-09-13 : 09:13:53
hi all i am in need of simple tutorial for "case when then"

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-09-13 : 09:26:06
http://www.java2s.com/Tutorial/SQLServer/0020__Query/Thesyntaxpatternforcase.htm

or you can google using 'sql server case expression tutorial'


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

DuncanP
Starting Member

12 Posts

Posted - 2010-09-13 : 10:52:10
There's always books online:
[url]http://msdn.microsoft.com/en-us/library/ms181765.aspx[/url]

It has some examples you can try if you've got the AdventureWorks database set up.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-09-14 : 06:07:03
Also refer this
http://beyondrelational.com/blogs/madhivanan/archive/2010/08/24/case-expression.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -