


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The document provided appears to be a set of sql queries related to a library management system database. The queries cover various aspects of the database, such as retrieving information about books, publishers, borrowers, and borrowed books. The queries demonstrate how to perform basic database operations like selecting, joining, and aggregating data. This document could be useful for students or professionals who are learning or working with database management systems, particularly in the context of library management applications. The queries cover a range of topics, including book availability, author and publisher information, isbn lookup, book title and publisher display, borrower access, book pricing, and database schema modifications. By studying this document, users can gain insights into database design, sql syntax, and practical applications of database management in a library setting.
Typology: Lab Reports
1 / 4
This page cannot be seen from the preview
Don't miss anything!
SELECT bookid AS Total_Number_of_Book_Available FROM tblbook
WHERE title = 'The Killing Zone';
SELECT tblbook.title, tblpublisher.publisher FROM tblbook, tblpublisher WHE RE tblbook.bookid = 1 AND tblpublisher.publisherid = 2 ;
SELECT tblbook.title,tblbook.isbn, tblpublisher.publisher FROM tblbook, tbl publisher WHERE tblbook.isbn = '866-844-444-3' AND tblpublisher.publisherid = 2 ;
SELECT title AS Library FROM tblbook UNION SELECT publisher FROM tblpublish er;
SELECT tblborrower.borrower, tblbook.title FROM tblborrower, tblbook WHERE tblborrower.borrowerid = 2 AND tblbook.bookid = 1 ;
SELECT title, quantity, price, SUM(price) * quantity AS Total_Price FROM tb lbook WHERE title = 'Man Of Steel';
SELECT tblborrower.borrower AS date_issued FROM tblborrower, tblborrowed_bo oks WHERE tblborrower.borrowerid = tblborrowed_books.borroweid AND tblborro wed_books.issuedate = '2022-10-10';
ALTER TABLE tblpublisher ADD province VARCHAR( 50 ) AFTER address
;