Question: Departments table table [ [ Column Name,Type ] , [ DeptID , INTEGER PRIMARY KEY ] , [ Name , TEXT ] ] Students

Departments table
\table[[Column Name,Type],[DeptID,INTEGER PRIMARY KEY],[Name,TEXT]]
Students table
\table[[Column Name,Type],[Student ID,INTEGER PRIMARY KEY],[Name,TEXT],[MajorID,\table[[INTEGER (Foreign key that references the Major ID column in],[the Majors table)]]],[DeptID,INTEGER (Foreign key that references the DeptID column in],[,the Departments table)]]
Figure 14-12 shows an entity relationship diagram for the database.
Figure 14-12 Entity relationship diagram for the student_info, db database
Write a program that creates the database and the tables.
Write a program that performs CRUD operations on the Majors table. Specifically, the program should allow the user to do the following: q, Add a new major
q, Search for an existing major
q, Update an existing major
q, Delete an existing major
q, Show a list of all majors
Write a program that performs CRUD operations on the Departments table. Specifically, the program should allow the user to do the following: q, Add a new department
q, Search for an existing department
q, Update an existing department
q, Delete an existing department
q, Show a list of all departments
 Departments table \table[[Column Name,Type],[DeptID,INTEGER PRIMARY KEY],[Name,TEXT]] Students table \table[[Column Name,Type],[Student ID,INTEGER

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!