Answered step by step
Verified Expert Solution
Link Copied!

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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