SELECT TOP 10 * FROM [tablename] ORDER BY bid desc
int total = 0; whie(dr.Read()) { total += Convert.ToInt32(dr[0]); } int ave = total / 10;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)