Skip to content

Instantly share code, notes, and snippets.

@johnbocook
Created March 8, 2016 20:53
Show Gist options
  • Select an option

  • Save johnbocook/9a25a4b9142444a95fcb to your computer and use it in GitHub Desktop.

Select an option

Save johnbocook/9a25a4b9142444a95fcb to your computer and use it in GitHub Desktop.
Calculate Students Level. Level_ table is usually accurate, You can also do the calculation based on number of credits received 0-29 is freshman, 30-59 is sophomore, 60-89 is junior and 90+ is senior.
(COUNT cred_rec FROM nmcrs
INNER JOIN grades ON grades.grade=nmcrs.grade AND grades.pass = 1
WHERE enrolled = "EN")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment