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

Spring 2025 - CS405 - 1

This assignment for CS405 - Database Programming using Oracle 11g requires students to design a Library Management System with specified entities and functionalities. Students must create tables for Members, Books, and Borrowing, and write SQL queries to extract specific information. Submissions must adhere to strict guidelines regarding format, timeliness, and originality to receive credit.

Uploaded by

zsaif6530
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)
4 views3 pages

Spring 2025 - CS405 - 1

This assignment for CS405 - Database Programming using Oracle 11g requires students to design a Library Management System with specified entities and functionalities. Students must create tables for Members, Books, and Borrowing, and write SQL queries to extract specific information. Submissions must adhere to strict guidelines regarding format, timeliness, and originality to receive credit.

Uploaded by

zsaif6530
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

Assignment No.

01 Total Marks: 20

SEMESTER Spring 2025 Due Date: 02-05-2025

CS405 -Database Programming using Oracle 11g

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

o The assignment is submitted after due date.


o The submitted assignment is other than .doc or .docx file.
o The submitted assignment does NOT open or file is corrupted.
o The assignment is copied (from other student or ditto copy from handouts or internet).

Objective

The objective of this assignment is:

o To understand the basic concepts of ERD, Relationship types and SQL queries.
Learning Outcomes

o After completing the assignment, the Student will be able to understand and design
ERD and write SQL queries.

For any query about the assignment, contact at [email protected]

Note:
No assignment will be accepted after the due date via email in any case (whether it is the case of
load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the
last hour of deadline. It is recommended to upload solution file at least two days before its closing
date.
Question # 01 (20pts)

A local library wants to digitize its system using Oracle Database. You are required to design a
Library Management System with the following functionalities:

Entity Requirements:

1. Members – who borrow books.

2. Books – information about the books in the library.

3. Borrowing – record of borrowed and returned books.

Now you are required to create the following tables with appropriate data types, constraints, and
primary/foreign keys (Insert at least 3rows into each table) mentioned below:

1. MEMBERS

o Member_ID (PK)

o Name

o Email (Unique)

o Join_Date

2. BOOKS

o Book_ID (PK)

o Title

o Author

o Genre

o Copies_Available
3. BORROWING

o Borrow_ID (PK)

o Member_ID (FK)

o Book_ID (FK)

o Borrow_Date

o Return_Date

Now you are required to write SQL queries:

Q1. Display all books currently borrowed (i.e., Return_Date is NULL).

Q2. Show the name and email of members who have borrowed more than 2 books.

Q3. List all genres with the count of books in each genre.

Q4. Display all books and their availability status ("Available" or "Not Available").

Q5. Find members who borrowed books from the genre ‘Science Fiction’.

Note: You are required to submit the screenshots written in oracle (Queries) along with its output
only.

You might also like