Git Product home page Git Product logo

bank-system-db-'s Introduction

Database for bank system

note that : The documents are in PDF and TXT format and can be opened with a PDF reader or a text editor.

This repository contains the documentation for a bank database. The documents are:

ERD

The ERD shows the entities and relationships in the database.

BANK_ERD.pdf: The Entity-Relationship Diagram (ERD) for the database.

Conceptual Model:

The conceptual model shows the overall structure of the database.

Conceptual Model.pdf : The conceptual model of the database.

DFD:

The DFD shows the flow of data through the database.

DFD.pdf : The Data Flow Diagram (DFD) for the database.

Data_Dictionary:

The data dictionary defines the data elements in the database.

Data_Dictionary.pdf : The data dictionary for the database.

Mapping:

The mapping shows how the ERD and the DFD are related

Mapping.pdfThe : mapping between the ERD and the DFD.

Relationship Matrix :

The relationship matrix shows the relationships between the entities in the database.

Relationship Matrix.pdf : The relationship matrix for the database.

define database schema :

The database schema is the actual definition of the database tables and columns.

database schema.txt : The database schema ( SQL sentax which creats the tables ).

queries file :

The SQL queries in the QUERY_ANALYSIS.txt file can be used to analyze the data in the database.

QUERY_ANALYSIS.txt : The SQL queries used to analyze the database.

Schemas

DEPARTMENT schema

CREATE TABLE DEPARTMENT(DNAME varchar(45), 
DNUMBER INT PRIMARY KEY, 
MGRSSN INT, 
MGRSTARTDATE INT);

EMPLOYEE schema

CREATE TABLE EMPLOYEE(FNAME varchar(45), 
MINIT varchar(45),SSN INT PRIMARY KEY, 
BDATE date,ADDRESS varchar(45), 
SEX varchar(45), 
SALARY float, 
SUPERSSN INT, 
DNO INT, 
foreign key(DNO) REFERENCES DEPARTMENT (DNUMBER)); 

PROJECTS schema

CREATE TABLE PROJECTS ( 
    PNAME varchar(45), 
    PNUMBER INT PRIMARY KEY, 
    DNUM INT, 
    PLOCATION varchar(45), 
   foreign key(DNUM) REFERENCES DEPARTMENT(DNUMBER) 
);

DEPT_LOCATIONS schema

CREATE TABLE DEPT_LOCATIONS(DNUMBER INT,DLOCATION INT PRIMARY KEY, 
foreign key(DNUMBER)REFERENCES DEPARTMENT(DNUMBER)); 

WORKS_ON schema

CREATE TABLE WORKS_ON(PNO INT, 
HOURS INT, 
ESSN INT, 
foreign key(PNO) REFERENCES PROJECTS(PNUMBER), 
foreign key(ESSN) REFERENCES EMPLOYEE(SSN) 
);

DEPENDENT schema

CREATE TABLE DEPENDENT ( 
    DEPARTMENT_NAME varchar(45), 
    ESSN INT, 
    SEX varchar(45), 
   BDATE date, 
    RELATRIONSHIP varchar(45), 
   foreign key(ESSN) REFERENCES EMPLOYEE(SSN) 
);

bank-system-db-'s People

Contributors

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