Skip to content

Instantly share code, notes, and snippets.

@jkstill
Created December 1, 2014 17:33
Show Gist options
  • Save jkstill/5cd82aae7abcffba2913 to your computer and use it in GitHub Desktop.
Save jkstill/5cd82aae7abcffba2913 to your computer and use it in GitHub Desktop.
1 with mydata as (
2 select level id
3 from dual connect by level <= 10
4 )
5 select id from mydata
6* having id between 5 and 8
09:27:05 ora112304a.jks.com - jkstill@js02 SQL> /
having id between 5 and 8
*
ERROR at line 6:
ORA-00979: not a GROUP BY expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment