Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/m7moudgadallah/sales-office-db-design
database dbschemas eer-diagram erdiagram mssqlserver normalization sql tsql
Last synced: 27 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/m7moudgadallah/sales-office-db-design
- Owner: m7moudGadallah
- License: mit
- Created: 2023-08-18T15:32:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-19T12:30:12.000Z (about 1 year ago)
- Last Synced: 2024-09-29T14:21:24.963Z (about 1 month ago)
- Topics: database, dbschemas, eer-diagram, erdiagram, mssqlserver, normalization, sql, tsql
- Language: TSQL
- Homepage:
- Size: 956 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sales Office Database 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.
## Table Of Content
- [Sales Office Database Design](#sales-office-database-design)
- [Table Of Content](#table-of-content)
- [Business Requirement](#business-requirement)
- [How To Use](#how-to-use)
- [Design](#design)
- [Entity-Relationship Diagram ERD](#entity-relationship-diagram-erd)
- [Database Schema](#database-schema)
- [Normalized Schema](#normalized-schema)
- [Enhanced Entity-Relationship Diagram EERD](#enhanced-entity-relationship-diagram-eerd)
- [Implementation](#implementation)
- [Creating the Database](#creating-the-database)
- [MS Sql Server DB Digram](#ms-sql-server-db-digram)
- [License](#license)## 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](#table-of-centent)**
## How To Use
This could include steps for setting up the database, loading data, executing queries, and any other relevant details.
**[↑ Top](#table-of-centent)**
## Design
### Entity-Relationship Diagram (ERD)
![ERD](./design/sales_office_erd.png)
**[↑ Top](#table-of-centent)**
### Database Schema
![Schema](./design/sales_office_schema.png)
**[↑ Top](#table-of-centent)**
### Normalized Schema
![Normalized-Schema](./design/sales_office_schema_normalized.png)
**[↑ Top](#table-of-centent)**
### Enhanced Entity-Relationship Diagram (EERD)
![EERD](./design/sales_office_eerd.png)
**[↑ Top](#table-of-centent)**
## Implementation
Explore the `implementation` directory for the implementation details, including:
### Creating the Database
Run the SQL queries in [create_db.sql](./implementation/create_db.sql) to set up the database structure.
### MS Sql Server DB Digram
![MS Sql Server DB Digram](./implementation/db_digram.png)
**[↑ Top](#table-of-centent)**
## License
This project is licensed under the [MIT License](LICENSE).
**[↑ Top](#table-of-centent)**