This is a simple database for a university. It keeps track of students, teachers, classes, and who is taking what.
The database has 6 tables:
- student - All the student info like names, addresses, and what they're studying
- faculty - Teacher information and contact details
- major - Different subjects you can study (like Math, English, etc.)
- course - All the classes the school offers
- section - When and where each class meets
- registration - Which students signed up for which classes
- You need MySQL on your computer
- Make a new database called
UniversitySystem - Load the SQL file into your database
- Now you can look at all the data!
The database comes with fake data for:
- 15 students
- 7 teachers
- 8 different majors
- 12 courses
- 20 class sections
See all students:
SELECT * FROM student;Find students in Business major:
SELECT s_first_name, s_last_name FROM student WHERE maj_id = 'BUS';See the class schedule:
SELECT crs_code, days, times, room FROM section;This database is good for learning how databases work!