IMS-CSET-201-Lab Assignment 7.2
IMS-CSET-201-Lab Assignment 7.2
CO-Mapping
CO1 CO2 CO3
Q1 √ √
Q2 √ √
Q3 √ √
Q4 √ √
Q5 √ √
Q6 √ √
Q7 √ √
Q8 √ √
A- Type- Lab Assignment/Tutorial # No. (Week 7, Assignment No. 2)
Objectives: -
1. Student will be able to learn how to use the concept of subqueries
2. Student will be able to practice operators: In , Not In, Exists, Not Exists, All, Any
We have Art Gallery database with four tables: paintings, artists, collectors, and sales. You can see the
data stored in each table below.
Paintings table has id, name of the painting, artist id and the price listed of the painting
Artist and collectors table has id and their first and last name
Sales table has all the details of sales of paintings having columns as sales_id, date of sale, price at
which the painting is sold and id’s of artist , painting and collectors
School of Computer Science Engineering and Technology
School of Computer Science Engineering and Technology
Questions:
2. Create three tables named as paintings, artists, collectors and sales and insert records
4. Find the name of paintings sold at the price greater than 2500
5. Select the name of collectors who have purchased painting less than price 2000
8. Show the first names and the last names of the artists who had zero sales with our gallery.