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 |
|
kiruthika
Yak Posting Veteran
67 Posts |
Posted - 2008-04-04 : 07:59:02
|
| Dear Friends, Is there any way to display a table data separately like odd rows and even rows?I dont know this is possible or not?If it is possible means how can i achieve it?Please guide me a proper way.Thanks all!kiruthikahttp://www.ictned.eu |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
|
|
yaman
Posting Yak Master
213 Posts |
Posted - 2008-04-04 : 08:26:26
|
| use this codeFor get even rowsselect * from table_1 where id%2=0For get odd rowsselect * from table_1 where id%2<>0Yaman |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-04-05 : 02:53:36
|
quote: Originally posted by kiruthika Dear Friends, Is there any way to display a table data separately like odd rows and even rows?I dont know this is possible or not?If it is possible means how can i achieve it?Please guide me a proper way.Thanks all!kiruthikahttp://www.ictned.eu
In any case you need unique key in your tableMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|