Giter Club home page Giter Club logo

bank-database-design_ms-sql's Introduction

Bank-Database-Design

ER Diagram:

ER Diagram of Bank database design

Design Entities:

ER Diagram of Bank database design

Introduction:

There are only two types of accounts at this time: Checking and Savings accounts. The provided column list should be separated into appropriate entities (tables) with relationships between these entities defined. The most efficient choices as far as your primary key constraints and foreign key constraints, and picked the appropriate data types for each of the columns.

Project Goals:

The goal of the project is to understand database entities in more depth and have practical experience of working with different objects of SQL.

Phase I:

  1. Create a database for a banking application called “Bank”.
  2. Create all the tables mentioned in the database diagram.
  3. Create all the constraints based on the database diagram.
  4. Insert at least 5 rows in each table.

Phase II:

  1. Create a view to get all customers with checking account from ON province.
  2. Create a view to get all customers with total account balance (including interest rate) greater than 5000.
  3. Create a view to get counts of checking and savings accounts by customer.
  4. Create a view to get any particular user’s login and password using AccountId.
  5. Create a view to get all customers’ overdraft amount.
  6. Create a stored procedure to add “User_” as a prefix to everyone’s login (username).
  7. Create a stored procedure that accepts AccountId as a parameter and returns customer’s full name.
  8. Create a stored procedure that returns error logs inserted in the last 24 hours.
  9. Create a stored procedure that takes a deposit as a parameter and updates CurrentBalance value for particular account.
  10. Create a stored procedure that takes a withdrawal amount as a parameter and updates CurrentBalance value for that account.
  11. Create a stored procedure to remove all security questions for a particular login.
  12. Delete all error logs created in the last hour.
  13. Write a query to remove SSN column from Customer table.
  14. Prepare a report to describe the project.
  15. Prepare a presentation for the project.

bank-database-design_ms-sql's People

Contributors

gmgyan avatar

Stargazers

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