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 |
|
smithani
Starting Member
42 Posts |
Posted - 2007-06-07 : 16:39:04
|
| Hi AllI want to select a certainnumber of rowsselect custno, amt, balance from customer where custno='customerno' when showcust='r' then select rows where amt<balance when showcust='c' then amt>balance etcif showcust='' then show everythingAny insight will be greatly apprecaited.Thanks |
|
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2007-06-07 : 16:58:03
|
| please do not duplicate posts..http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=84711Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
|
|
|