Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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