Giter Site home page Giter Site logo

caesarmario / database-bookstore-case-study Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 2.0 1.59 MB

A case study about designing simple database system for a bookstore. This repository contains ERD design and SQL codes for design of bookstore database system. The main purpose of this system is to build database system for bookstore.

database erd database-management sql database-design database-systems entity-relationship-diagram data-science database-schema unf

database-bookstore-case-study's Introduction

πŸ“š Case Study - Database Bookstore πŸ“š

using SQL πŸ”©


Star Badge


πŸ“ƒ Table of Contents:


πŸ–‹ About Project:

πŸ‘‰ A database built for e-bookstore case studies.
πŸ‘‰ The database built using SQL in Microsoft SQL Server 18.

🧾 Scenario:

The availability of books and reading material for purchase within the University is quite inadequate. Although the university library has vast collection of books (both hardcopy and e-books), the availability of it is quite limited and bound by many restrictions. Student and staffs only have the option of a small bookshop within the enterprise. Larger books store in the city are often sought for other varieties.

In view of the growing population, the university is planning to establish an e-bookstore. The online store will facilitate the purchase of latest books and material of many genres. Your team is assigned the project to design a database system for online University e-Bookstore System.

β€’ Publishers of books frequently send lists of latest books and materials to the e-bookstore manager. The bookstore manager compiles a list of needed books and sends an order to the publishers. The publisher supplies the ordered books to the university. The bookstore manager records the details of a new book, along with the number of the books that have arrived at the bookstore. An invoice is sent to the accounts department to be processed and payment made.

β€’ Customers, who wish to purchase books online, need to initially register as members. Members will be able to view the book, read reviews and compare the online products with other similar articles.

β€’ Members who wish to purchase can select their books into the website’s shopping cart. The cart will show the summary of the selection and total cost to be paid. Once the payment is made, the customer will be able to print or save the receipts. The bookstore will send the books to the customers within 7 working days.

β€’ The system should manage information about books in the bookstore, inventory, (registered) customers and books they have ordered. It should also store information about user opinions and book ratings.

β€’ Users can also provide 'feedback' for a book, as a score (1-10 which is 0= terrible, 10= masterpiece) along with optional short text. No changes are allowed; only one feedback per user per book is allowed.

πŸ“‹ ERD Design:

πŸ‘‰ Based on the scenario above, the ERD designs defined as follows here.



πŸ“‘ Business Rules:

  • A publisher can have only one invoice, invoice is made by publisher by the end of the month.
  • An invoice can be associated with one or many orders, one order can only be associated with one invoice.
  • A publisher can have one or many orders.
  • An order can be associated with one or many order detail.
  • An employee can manage one or many orders.
  • A book can be associated with one or many order detail.
  • A publisher can publish one or many books.
  • A book can have only one category.
  • A member can only give one feedback for each book.
  • A book can have one or many feedbacks.
  • A member can have one or many carts.
  • A cart can be associated with one or many cart detail.
  • A book can be associated with one or many cart detail.
  • A cart has only one receipt.
  • MemberID can only be associated to single member and there shall be no null.



βš™ Normalization Process:

β–Ά UNF

β–Ά 1NF

β–Ά 2NF

β–Ά 3NF

πŸ“— Data Dictionary:

πŸ‘‰ Based on normalization process, below are the screenshot of data dictionaries:

πŸ“ Database Schema:

πŸ‘‰ Database schema generated by Microsoft SQL Server 18.

πŸ™Œ Support me!

πŸ‘‰ If you find this project useful, please ⭐ this repository πŸ˜†!


πŸ‘‰ More about myself: here

database-bookstore-case-study's People

Contributors

caesarmario avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.