May 29, 2003 #1 mtl77 Programmer May 27, 2003 31 CA Does someone know how to get an average from a TOP n query like the following? SELECT TOP 10 myColoum FROM myTable Where tableID = aValue Order by myColoum. Any help would be greatly appreciated.
Does someone know how to get an average from a TOP n query like the following? SELECT TOP 10 myColoum FROM myTable Where tableID = aValue Order by myColoum. Any help would be greatly appreciated.
May 29, 2003 #2 ClaireHCM IS-IT--Management Mar 26, 2003 772 US Try~~ select avg(mycoloum) as average from (SELECT TOP 10 myColoum FROM myTable Where tableID = aValue Order by myColoum) B Upvote 0 Downvote
Try~~ select avg(mycoloum) as average from (SELECT TOP 10 myColoum FROM myTable Where tableID = aValue Order by myColoum) B
May 29, 2003 Thread starter #3 mtl77 Programmer May 27, 2003 31 CA Great that works perfectly, Thanks for the help ClaireHsu! Upvote 0 Downvote