Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Derive the equation in Table 3-2f.

Answered: 1 week ago

Question

13. Why do some companies comply with nearly all claims?

Answered: 1 week ago