Answered step by step
Verified Expert Solution
Question
1 Approved Answer
0 2 0 0 0 CST 2 0 4 0 5 2 1 0 1 Module - 2 1 3 a ) Consider the following
CST
Module
a Consider the following schema,
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
ii Find the names of suppliers supplying some green part for less than Rs
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
b DROP and DELETE
ii ALTER and UPDATE
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
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