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.
| Author |
Topic |
|
bachnet
Starting Member
2 Posts |
Posted - 2009-07-15 : 12:32:50
|
| Hello everybody,It's my first time that i post a issue on this forum,I have a problem in my query, i have to make the followinselect case when ColX LIKE 'anyth%' then 'hello'when ColY like 'othe%' then ColX= 'hello'else ColX endfrom ...how can i make that? Thanks in advance,if you need more clarification please contact me asapBest Regards |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-07-15 : 12:37:58
|
| [code]select ColX= case when ColX LIKE 'anyth%' then 'hello'when ColY like 'othe%' then 'hello'else ColX end....[/code] |
 |
|
|
bachnet
Starting Member
2 Posts |
Posted - 2009-07-15 : 14:47:05
|
| Thank you it's working, infact my query also is working but i has a unaccurate data.Thank you again |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-07-16 : 12:49:19
|
| welcome |
 |
|
|
|
|
|