Skip to content

Instantly share code, notes, and snippets.

@pmaddi
Created November 22, 2017 22:32
Show Gist options
  • Save pmaddi/6372601a96c96db92fb2b3612e33d861 to your computer and use it in GitHub Desktop.
Save pmaddi/6372601a96c96db92fb2b3612e33d861 to your computer and use it in GitHub Desktop.
local_db=> select major_most_relevant, role_id from rolepreference where role_id=112;
major_most_relevant | role_id
---------------------+---------
45 | 112
45 | 112
(2 rows)
local_db=> select major, count(*) from student where major=45 group by major;
major | count
-------+-------
(0 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment