Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider this relational model and the following questions in terms of writing SQL DDL code. Change S_MNAME in STUDENN table from mandatory to optional
Consider this relational model and the following questions in terms of writing SQL DDL code.
- Change S_MNAME in STUDENN table from mandatory to optional attribute.
- make a constraint for enforcing the business rule that SKILL_ID in SKILL table has minimum 3 digits.
- Add an attribute, DOB (Date of Birth) in STUDENT table
- Add default value as 0 (zero) for HOURLY_RATE attribute of CLIENT_STUDENT table.
- If we increase the maximum size of CID attribute in CLIENT table from four to six, what other changes we need to do, and why?
IP CID *CNAME CLIENT NUMBER (4) VARCHAR2 (30) VARCHAR2 (30) VARCHAR2 (30) CHAR (5) * STREET * CITY ZIPCODE CLIENT_PK (CID) CLIENT STUDENT NUMBER (7.2) NUMBER (4) NUMBER (6) CLIENT STUDENT_PK (CID. SID) CLIENT STUDENT_CLIENT_FK (CID) CLIENT STUDENT_STUDENT FK (SID) HOURLY_RATE PF CID PF SID P SID . S_FNAME *S_MNAME S_LNAME STUDENT_PK (SID) SKILL LEVEL PF SID PF SKILL_ID STUDENT NUMBER (8) VARCHAR2 (30) VARCHAR2 (20) VARCHAR2 (30) t STUDENT SKILL P SKILL_ID CHAR (1) NUMBER (8) NUMBER (3) STUDENT SKILL_PK (SID, SKILL_ID) STUDENT SKILL STUDENT_FK (SID) STUDENT SKILL SKILL_FK (SKILL_ID) SKILL NUMBER (3) VARCHAR2 (20) * SKILL_NAME . SKILL_PK (SKILL_ID)
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