Question
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.
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