my SQL code not working (syntax error at or near "FROM") i need my final table to be three rows. the average of standard_amt_usd for the three total group i created from Total column. where is my mistake?
select avg(orders.standard_amt_usd), orders.total
, case when orders.total between 1 and 100 then "1 to 100"
when orders.total between 101 and 300 then " 101 to 300"
else " +500 "
FROM orders;
group by total