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 2000 Forums
 Transact-SQL (2000)
 instr column with alternate val

Author  Topic 

chodanvaibhav
Starting Member

4 Posts

Posted - 2009-02-04 : 02:03:47
i want a 2 column value to be true and other 2 col false in a select

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-02-04 : 02:15:30
try like this
select * , case when identitycolumnname %3 = 0 then 'inactive' else 'active' end status from
urtablename
Go to Top of Page
   

- Advertisement -