Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Following are the entities and attributes of a university library database. The database records student enrollment in courses and the books adopted for each course.

Following are the entities and attributes of a university library database. The database records student enrollment in courses and the books adopted for each course. STUDENT(SID, SNAME, SMMAJOR, SBDATE) COURSE(CNO, CNAME, DEPT) ENROLL(SID, CNO, SEM, CLASS) BADOPT(CNO, SEM, ISBN) BOOK(ISBN, TITLE, PUB, AUTH) Note: SID= Student ID number, SNAME= Student name, SBDATE= Student date of birth, CNO= Course number, CNAME= Course name, DEPT= Name of department, SEM=Semester, CLASS= Students class, ISBN= Book Identification number, Title= Title of the book, PUB= Publishers name, AUTH= Authors name. Write the following queries using SQL. 1) List the number of courses taken by all students named Ahmed Jan in the Spring 2022 semester. 2) List detail of all textbooks for courses offered by the BS department that have used more than three textbooks. 3) List departments that has all its adopted books published by New Fortune Publishers. 4) List the courses which has adopted more than three textbooks.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago