Question: 1 4 a ) Write SQL DDL statements based on the following database schema ( Assume 8 suitable domain types ) : Employee ( eid

14 a) Write SQL DDL statements based on the following database schema (Assume
8
suitable domain types):
Employee (eid, name, designation, salary, comp_id)
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 "years_of_exp"
iv) Increment the salary of employees whose salary is less than Rs 25000 by 5%
b) Illustrate any three ways of using INSERT statement in SQL.
 14 a) Write SQL DDL statements based on the following database

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!