View on GitHub

College-Database

College Database

A database program created in MySQL that can function as a college database. It stores all the students’ info in the student_info table which contains the firstname, lastname, student ID, major and their sex. The instructors’ details with their IDs and names are in another related table. Another table contains the major names and their corresponding codes. Lastly, different tables have been created for each individual course being offered. These course tables contain the student ID of each student who has taken the course, name of professor who taught the course to the student, year and semester the course was taken in and the mark the student received in the course.

Running the program

  1. Create a database called first_db on MySQL
  2. Run the script main.sql

Note: This program has only been tested on MySQL. Performance on other database engines is not guaranteed.

Pictures of table

Student info, instructor info and majors’ tables

Student information table Instructor information table Major information table

Table for different subjects

Click the links to see the images

Results of queries performed

Click the links to see the images

Contributing

Pull requests are welcome for adding more courses and populating the database or fixing exisiting issues.

License

MIT