Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 (4 Marks) In a database that has many tables we have these tables EMPLOVEE (Salary, Name, Address, BDate, Specialization) DEPARTMENT (Dept_Name, Dept_Num, Managr_ID,

Question 1 (4 Marks)\ In a database that has many tables we have these tables\ EMPLOVEE (Salary, Name, Address, BDate, Specialization)\ DEPARTMENT (Dept_Name, Dept_Num, Managr_ID, Dept_Location)\ Choose a suitable primary key for EMPLOYEE\ Choose a suitable primary key for DEPARTMENT\ Choose a candidate key for DEPARTMENT\ Re-designing the tables to maintain the relation between them.\ Question 2 (10 Marks)\ a) Write SQL statement to create a new table named STUDENT to hold students names,\ student ID, email address, Major and GPA. Student's name and Major can consist of\ maximum 75 letters, student's ID are between 0 up to 1000 with no fractions, and\ Email follows the standard email formula, while GPA is a numerical value more than 0\ and less than 4. All information are must have within each record.\ [2Marks]\ b) Write statement to add your information to the table you created above.

image text in transcribed
In a database that has many tables we have these tables EMPLOYEE (Salary, Name, Address, BDate, Specialization) [4 Marks] DEPARTMENT (Dept_Name, Dept_Num, Managr_ID, Dept_Location) Choose a suitable primary key for EMPLOYEE Choose a suitable primary key for DEPARTMENT Choose a candidate key for DEPARTMENT Re-designing the tables to maintain the relation between them. Question 2 (10 Marks) a) Write SQL statement to create a new table named STUDENT to hold students names, student ID, email address, Major and GPA. Student's name and Major can consist of maximum 75 letters, student's ID are between 0 up to 1000 with no fractions, and Email follows the standard email formula, while GPA is a numerical value more than 0 and less than 4 . All information are must have within each record. [2Marks] b) Write statement to add your information to the table you created above. [2Marks]

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

More Books

Students also viewed these Databases questions

Question

Why does it matter whether the Olympic Games exceed their budget?

Answered: 1 week ago

Question

Be able to create a contract for consultant services

Answered: 1 week ago

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago