The following are a few rows in my table:
StatedValue VehType Deductible Rate
10000 Truck 1000 9.16
11000 Truck 1000 9.02
12000 Truck 1000 8.82
13000 Truck 1000 8.64
14000 Truck 1000 8.51
15000 Truck 1000 8.33
SELECT Rate FROM table where StatedValue <= 13775 AND VehType='Truck'
AND Deductible=1000 (obviously, returns 4 rows).
But, I only want the Rate(8.64) from the row containing the highest
StatedValue returned from the above query.
Please help modify this query.
StatedValue VehType Deductible Rate
10000 Truck 1000 9.16
11000 Truck 1000 9.02
12000 Truck 1000 8.82
13000 Truck 1000 8.64
14000 Truck 1000 8.51
15000 Truck 1000 8.33
SELECT Rate FROM table where StatedValue <= 13775 AND VehType='Truck'
AND Deductible=1000 (obviously, returns 4 rows).
But, I only want the Rate(8.64) from the row containing the highest
StatedValue returned from the above query.
Please help modify this query.
Comment