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 |
|
leoparsd
Starting Member
6 Posts |
Posted - 2006-12-15 : 05:13:33
|
| as i stated in the subject i want to gather the biggest five records from the table with sql, how can i do that? |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-12-15 : 05:15:11
|
| Biggest? in what terms?Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-12-15 : 06:04:59
|
| 1 Select top 5 Values from table Order by values DESC2 Post some sample data and the result you wantMadhivananFailing to plan is Planning to fail |
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2006-12-15 : 09:09:14
|
| Job interview question?CODO ERGO SUM |
 |
|
|
leoparsd
Starting Member
6 Posts |
Posted - 2006-12-15 : 11:29:09
|
| thank you so much madhivan , i got that done successfully ; however, no i am troubling with another sql problem.i gotta calculate the sum of different fields in the table. i thought about using sum aggregate function but as far as i know it just calculates the sum of the same field provided that you group the rows.thank you inadvance.. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-12-15 : 11:35:14
|
| Can you post some data and the result you want?MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|