The document outlines an assignment for a Database Management System (DBMS) course, consisting of relational algebra queries based on provided schemas for suppliers, employees, teachers, and a banking database. It includes specific tasks such as finding suppliers of certain parts, employee details for various projects, and customer information in a banking context. The assignment requires students to demonstrate their understanding of relational algebra and SQL through practical queries.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views3 pages
DBMS_Assignment2_2079
The document outlines an assignment for a Database Management System (DBMS) course, consisting of relational algebra queries based on provided schemas for suppliers, employees, teachers, and a banking database. It includes specific tasks such as finding suppliers of certain parts, employee details for various projects, and customer information in a banking context. The assignment requires students to demonstrate their understanding of relational algebra and SQL through practical queries.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Assignment-2
Sub: DBMS
1. Consider the following schema:
Supplier (s_id,sname,s_addr) Parts (p_id,pname,color) Catalog (s_id,p_id,cost)
Answer the following queries in relational algebra
a) Find the name of all suppliers who supply yellow parts. b) Find the name of suppliers who supply both blue and black. c) Find the name of supplier who supply all parts.
c-231 oracle 107 c-278 java 110 c-353 Operating system 107 c-354 C 104 c-435 VB 101 Write the relational algebra queries for the following: a) List emp_id of employees working on project c-353. b) Get details of employees (both number and name) working on project c-353. c) Obtain the details of employees working on operating system project. d) Gather the details of employees working on both c-353 and c-354. e) Find the employee number of all employees who work on atleast all the projects that employee 107 works on. f) Find the employee number of employee who do not work on project c-453.
3. Retrieve the TName, and No_of_period of teachers who teach in “ABC”
school using Relational Algebra.
TEACHER (TID, TName, TAddress, TQualification)
SCHOOL (SID, SName, SAddress, SPhone)
SCHOOL_TEACHER (SID, TID, No_of Period).
4. Consider a banking database with three tables and primary keys