Home > database > Results in the table, the number of each class is not sure, how to remove the score before and after
Results in the table, the number of each class is not sure, how to remove the score before and after
Time:12-24
Is a result table, inside field about the following
Per shift number is not sure, now require to calculate each division average, but the average is calculated after 1/10 and 1/10 places before students grades, how to achieve that in SQL statements.
Thank you!!
CodePudding user response:
SELECT AVG (mark) FROM league tables WHERE the score NOT IN ( (SELECT TOP (SELECT COUNT (*) FROM league tables)/10) scores FROM record table ORDER BY score), (SELECT TOP (SELECT COUNT (*) FROM league tables)/10) scores FROM score record table ORDER BY DESC) )