0% found this document useful (0 votes)
15 views4 pages

Assignment No.-3

The document describes an assignment to write SQL queries using various clauses and operators including WHERE, ORDER BY, GROUP BY, HAVING, and set operators. It involves selecting books by publication year, title, number of books by author, and grouping and counting books by genre.
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
15 views4 pages

Assignment No.-3

The document describes an assignment to write SQL queries using various clauses and operators including WHERE, ORDER BY, GROUP BY, HAVING, and set operators. It involves selecting books by publication year, title, number of books by author, and grouping and counting books by genre.
Copyright
© © All Rights Reserved
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/ 4

BansilalRamnathAgarwalCharitableTrust’s

VishwakarmaInstituteofTechnology, Pune-37
(AnautonomousInstituteofSavitribaiPhulePuneUniversity)

Department of Multidisciplinary
Engineering

Division B

Batch 3

GR-no 12320155

Rollno 77

Name SUMIT SHIVMURTI UMBARE


Title: Assignment No.-3

Description: Design and Execute "SELECT" queries using conditional,


logical, like/not like, in/not in, between...and, is null/is not null operators in
where clause, order by, group by, aggregate functions, having clause, and set
operators. Use SQL single row functions for date, time, string etc.

Screenshots/Output:

1. Select all books published after the year 2000:


2.

2. Select books with titles containing the word 'Harry':

3. Select authors who have written more than 2 books:

4. Select books with publication years between 1980 and 2000, ordered by publication year:
5. Select authors who have written books in the genres 'Mystery' or 'Science Fiction':

6. Select authors who have not written any books:

7. Count the number of books published in each genre:


8. Select the genre with the highest number of books:

You might also like