Consider the following schema: Parts(pid: string, pname: string, description: st
ID: 3650478 • Letter: C
Question
Consider the following schema:Parts(pid: string, pname: string, description: string, color: string)
Departments(did: string, dname:string, address: string)
Suppliers(sid:string,sname:string, address:string)
Order(did:string, sid: string, pid:string, time:string, quantity:real, price:real)
The key fields are underlined, and the domain of each field is listed after the field name. Thus pid is the key for Part, did is the key for Department, sid is the key for Supplier, and did, sid,and pid together form the key for Order. Write the following queries in Relational algebra.
Find the names of parts which are supplied by DELL. Note that DELL is a supplier name.
Find the ids of suppliers which supply both parts M001, and M102. Note that M001 and M102 are ids for parts.
Find the ids of parts that are supplied by at least two different suppliers.
Find the names of suppliers which have supplied all parts.