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 |
|
Easwar
Yak Posting Veteran
59 Posts |
Posted - 2007-03-10 : 03:11:52
|
in my table have two column one post(varchar) and another one views(decimal).in table have no.of data's.......sample data'sEx i want this Resultpost views post viewsstd 400 std 400abc 100 abc 100dbn 10 sdfe 75sdfe 75 dbn 10.... .......... ........i need one query....... condition view best top 10 post based on views column  |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-03-10 : 03:40:22
|
select the top 10 views then do the formating you required in your front end appselect top 10 post, viewsfrom yourtableorder by views desc KH |
 |
|
|
Easwar
Yak Posting Veteran
59 Posts |
Posted - 2007-03-10 : 04:15:23
|
| Thanks sirThat query worked |
 |
|
|
|
|
|