0% found this document useful (0 votes)
12 views3 pages

IMS-CSET-201-Lab Assignment 7.2

Uploaded by

aryamaswadha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

IMS-CSET-201-Lab Assignment 7.2

Uploaded by

aryamaswadha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

School of Computer Science Engineering and Technology

Course-B. Tech Type- Core


Course Code- CSET201 Course Name- Information Management System

Year- 2024 Semester- Even


Date- 09/09/2024 Batch- 2023-2026

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

ART Gallery Database

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:

1. Create a database named as artgallerydb.

2. Create three tables named as paintings, artists, collectors and sales and insert records

3. Select the painting_id having with maximum sales price

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

6. List paintings that are priced higher than the average

7. List all collectors who purchased paintings from our gallery.

8. Show the first names and the last names of the artists who had zero sales with our gallery.

You might also like