I keep getting an error when I am trying to execute this code on Oracle
SELECT id,
Max(id),
artist AS"Artist"
FROM d_songs
WHERE duration IN( '3 min', '6 min', '10 min' )
HAVING id < 50
GROUP BY id;
What am I doing wrong? It is saying that this is not a group by expression.