ID.
Name.
Course Code. PMIT6006
Date. 12-02-2021
Each carries 5 marks
1. Write a SQL code to create a table PMIT that contains six columns such as Student_name,
Student_id, Contact_address, Mobile, Gender, Age
2. Write a SQL code to insert values of Rakib, 01910, Mirpur, 87654331, Male, 30 into the
table of PMIT.
3. Write a SQL code to find out the student names from the table of PMIT who are male,
contact address is at Mirpur, and age is between 30-40 years.
4. Find out the following query’s output:
σactor =‘ABC’(Dance) - σactor =‘XYZ’(Dance)
note. Dance(actor, Dance-name), and Dance is a table/relation
5. ToyShop(kid, store)
Sells(store, toys)
Likes(kid, toys)
# Table/Relation ToyShop indicates what toy stores a kid likes to visit.
# Table/Relation Sells shows which toy each store sells.
# Table/Relation Likes informs which toy a kid likes.
Use relational algebra to find the kids who like “Robot” or “Ludu” toy.