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 |
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2010-04-22 : 01:40:18
|
| hi i have following table structureID Name age1 A 302 b 253 c 154 d 255 e 206 f 407 g 228 h 159 i 10i have get following resultsID Name age1 A 303 c 155 e 207 g 229 i 10how to write select query thnaks in advance |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2010-04-22 : 01:44:29
|
[code]select *from table1where ID % 2 = 1[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
amirs
Constraint Violating Yak Guru
260 Posts |
Posted - 2010-04-22 : 01:46:55
|
| thanks to replay it is workingi have solve both problem of odd or even id records |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-04-22 : 04:56:01
|
| will ID values be always continuos?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|