Consider the following database schema for University Library database. A student can borrow many books and a given book can be porrowed by any student if it is available in the library. For each borrowing, the borrowing and return dates are registered in the database. Student (SID: long, CPR:long (unique), Name:string, tel:number, major:String, gender:Character { 'F' or 'M'}) Book (ISBN:long, Title:string (unique), Author:string) Borrowedltems(stSID:long, booklSBN:long, serialNoint (unique), BorrowingDate:date, ReturnDate:date) Write SQL statements to: 1. List ISBN, Title, Author of all books that include the word 'Database' in their titles in a descending order of ISBN. 2. List SID, Name, and Major of all female students doing major in 'CS' and their name starts with 'S'.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question
QUESTION 7
Consider the following database schema for University Library database. A student can borrow many books and a given book can be
borrowed by any student if it is available in the library. For each borrowing, the borrowing and return dates are registered in the database.
Student (SID: long, CPR:long (unique), Name:string, tel:number, major:String, gender:Character (F'or M'})
Book (ISEN:long. Title:string (unique), Author.string)
BorrowedItems(STSID:long, booklSBN:long, serialNo.int (unique), BorrowingDate:date, ReturnDate:date)
Write SQL statements to:
1. List ISBN, Title, Author of all books that include the word 'Database' in their titles in a descending order of ISBN.
2. List SID, Name, and Major of all female students doing major in CS' and their name starts with 'S'.
Transcribed Image Text:QUESTION 7 Consider the following database schema for University Library database. A student can borrow many books and a given book can be borrowed by any student if it is available in the library. For each borrowing, the borrowing and return dates are registered in the database. Student (SID: long, CPR:long (unique), Name:string, tel:number, major:String, gender:Character (F'or M'}) Book (ISEN:long. Title:string (unique), Author.string) BorrowedItems(STSID:long, booklSBN:long, serialNo.int (unique), BorrowingDate:date, ReturnDate:date) Write SQL statements to: 1. List ISBN, Title, Author of all books that include the word 'Database' in their titles in a descending order of ISBN. 2. List SID, Name, and Major of all female students doing major in CS' and their name starts with 'S'.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Transaction Processing
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning