SQL code used for classes at UCSD