Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Take clear pictures and make sure the code works. MYSQL PRACTICE WORK. Universities university id (PK) name address email tel Students student id (PK) fname

Take clear pictures and make sure the code works.

image text in transcribedimage text in transcribed

MYSQL PRACTICE WORK. Universities university id (PK) name address email tel Students student id (PK) fname Iname email tel major major dob university id (FK) Courses course id (PK) name department University_Courses university id (PK + FK) course id (PK + FK) Student Courses Student id (PK + FK) Course id (PK + FK) Key: PK (Primary key) > FK (Foreign key) PK + FK (create a composite key, and make sure both are foreign keys as well) Section 1a): 1. Create a database called 'universityDB' 2. Create all the tables (be sure to use the most appropriate data types, data type lengths, and constraints) 3. Insert 2 records into the 'universities' table (Ashesi & University of Ghana) 4. Insert 7 records into the 'courses table' (Database Systems, Finance for Non-Finance, Discrete Math, Written and Oral Communication, Intro to Computing, Intro to Finance, Accounting) 5. Insert at least 3 courses for each university into the 'university_courses' table 6. Insert 3 students for each university (make sure each university has a CS, MIS and BA student) 7. Make sure every student is taking at least 2 courses ('student_courses' table)

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago