When I select to exclude the top highest, my numbers are drastically reduced.
I just did a Count query on the above results and I did one on the full data set (inner most in the nest)
Dataset = 496 records
Query using 99/99 as top/bottom = 99 records.. This should be 494.
Edit: I think I figured this out!
Here's what I used. The inner query I am subtracting the 1 record I do not want. On the outer query I take the resulting value of that (99) and subtract 1 since I am only left with 99, this is why the outside takes the top 98.
Code:
SELECT Min(Seconds) As MinSec, Max(Seconds) As MaxSec
FROM (
SELECT TOP 98 tblTime.Seconds
FROM (
SELECT TOP 99 tblTime.Seconds
FROM (
SELECT tblTime.Seconds
FROM tblTime, tblEmp
WHERE tblTime.EmpID=tblEmp.ID AND tblEmp.EmpType=1
ORDER BY tblTime.Seconds) AS [RangeAll]
ORDER BY tblTime.Seconds ASC) AS [RangeDESC]
ORDER BY tblTime.Seconds DESC) As [RangeASC];