Question: 1 4 a ) Write SQL DDL statements based on the following database schema ( Assume 8 suitable domain types ) : Employee ( eid
a Write SQL DDL statements based on the following database schema Assume
suitable domain types:
Employee eid name, designation, salary, compid
Company comp id cname, address, turnover
b Create the above mentioned tables assuming each company has many employees. Mention the primary key, foreign key and not null constraints.
ii Insert values into both the tables. Mention in which order insertions will be carried out.
ii Modify the table Employee to include a new column "yearsofexp"
iv Increment the salary of employees whose salary is less than Rs by
b Illustrate any three ways of using INSERT statement in SQL
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
