Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Departments table table [ [ Column Name,Type ] , [ DeptID , INTEGER PRIMARY KEY ] , [ Name , TEXT ] ] Students
Departments table
tableColumn Name,TypeDeptIDINTEGER PRIMARY KEYNameTEXT
Students table
tableColumn Name,TypeStudent IDINTEGER PRIMARY KEYNameTEXTMajorIDtableINTEGER Foreign key that references the Major ID column inthe Majors tableDeptIDINTEGER Foreign key that references the DeptID column inthe Departments table
Figure shows an entity relationship diagram for the database.
Figure Entity relationship diagram for the studentinfo, 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: Add a new major
Search for an existing major
Update an existing major
Delete an existing major
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: Add a new department
Search for an existing department
Update an existing department
Delete an existing department
Show a list of all departments
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started