I am trying to get the speed where it is less than 10 from the group but I am getting this error:
How can I fix it?
Every derived table must have its own alias
mysql code:
SELECT speed from
(SELECT stop_distance
FROM prognosis
WHERE mac = '12:B4:B3:89:H3:I3'
and stop_name = 'Sandstreet'
and stop_distance < 61)
where speed < 10