Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions