Coder Social home page Coder Social logo

library-mnagaement-dtabase-sql's Introduction

##Library-Mnagaement-Database-SQL

This database is made of seven tables as follows:

  1. librarybranch a. Inserted 6 values with the exception that one branch name is “Sharpstown.”
  2. borrower b. Inserted 8 values for the following columns: CardNo, Name, Address and Phone.
  3. books c. Inserted 10 rows of different books. One book is assigned with title “The Lost Tribe.”
  4. publisher d. Inserted 10 values to the columns PublisherName, Address and Phone.
  5. Book_Authors e. Inserted 10 different author names.
  6. book_copies f. Inserted values for the following columns: Number_of_Copies, BookID, and BranchID.
  7. book_loans g. Inserted 10 rows including values in the columns; BookID, BranchID, CardNo, DateOut, and DateDue

Schema

5

Joins

This project also includes a full outer join of three tables showing in following schema: SELECT * FROM ((book_loans FULL OUTER JOIN borrower ON book_loans.CardNo = borrower.CardNo) FULL OUTER JOIN books ON book_loans.BookID = books.BookID)

Schema6

Stored Procedure

This database contains three stored procedure to get the following output: A. How many copies of the book titled "The Lost Tribe" are owned by the library branch whose name is "Sharpstown"? B. How many copies of the book titled "The Lost Tribe" are owned by each library branch? C. Retrieve the names of all borrowers who do not have any books checked out.

library-mnagaement-dtabase-sql's People

Contributors

hameedullah-asadi3300 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.