Question: 0 2 0 0 0 CST 2 0 4 0 5 2 1 0 1 Module - 2 1 3 a ) Consider the following

02000CST204052101
Module -2
13 a) Consider the following schema,
8
Suppliers (sid , sname, address)
Parts (pid, pname, color)
Catalog (sid, pid, cost)
The primary key fields are underlined.
Write relational algebra expressions for the following queries:
b) Find the name of parts supplied by supplier with sid=105
ii) Find the names of suppliers supplying some green part for less than Rs 1000
iii) Find the IDs of suppliers who supply some red or green part
iv) Find the names of suppliers who supply some red part
b) Differentiate between the following SQL statements
6
b) DROP and DELETE
ii) ALTER and UPDATE
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)
 02000CST204052101 Module -2 13 a) Consider the following schema, 8 Suppliers

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!