m7moudGadallah / Sales-Office-DB-Design

This repository contains the database design for a sales office management system. The database captures information about sales offices, employees, properties, and property ownership. The design emphasizes efficient data management, adherence to business requirements, and normalization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sales Office Database Design

erd eerd DB

This repository contains the database design for a sales office management system. The database captures information about sales offices, employees, properties, and property ownership. The design emphasizes efficient data management, adherence to business requirements, and normalization.

Table Of Content

Business Requirement

The following describes this organization:

  • The firm has a number of sales offices in several states. Attributes of sales office include Office_Number and Location.
  • Each sales office is assigned one or more employees. Attributes of employee include Employee_ID and Employee_Name. An employee must be assigned to only one sales office.
  • For each sales office, there is always one employee assigned to manage that office.
  • The firm lists property for sale. Attributes of property include Property_ID and Location. Components of Location include Address, City, State, and Zip_Code.
  • Each property must be listed with one (and only one) of the sales offices. A sales office may have any number of properties listed, or may have no properties listed.
  • Each property may have zero or more owners. Attributes of owners are Owner_ID and Owner_Name. An owner may own one or more properties. The system stores the percent owned by each owner in each property.

↑ Top

How To Use

This could include steps for setting up the database, loading data, executing queries, and any other relevant details.

↑ Top

Design

Entity-Relationship Diagram (ERD)

ERD

↑ Top

Database Schema

Schema

↑ Top

Normalized Schema

Normalized-Schema

↑ Top

Enhanced Entity-Relationship Diagram (EERD)

EERD

↑ Top

Implementation

Explore the implementation directory for the implementation details, including:

Creating the Database

Run the SQL queries in create_db.sql to set up the database structure.

MS Sql Server DB Digram

MS Sql Server DB Digram

↑ Top

License

This project is licensed under the MIT License.

↑ Top

About

This repository contains the database design for a sales office management system. The database captures information about sales offices, employees, properties, and property ownership. The design emphasizes efficient data management, adherence to business requirements, and normalization.

License:MIT License


Languages

Language:TSQL 100.0%