<aside> 📌 Disclaimer: This is a case study project or final assignment during my undergraduate studies given in the course 'Introduction to Database’

</aside>

Description

NTESLE is a food and beverage company overseeing sales and purchase transactions. Sales transactions involve customer purchases managed by staff, while purchase transactions involve restocking ingredients from suppliers. Currently, NTESLE relies on a manual management system for handling these transactions.

Goals

Create a database system that can store data and maintain the sales transactions and purchase transactions.

Task

As a database administrator in this project, my responsibilities are:

Process and Steps

  1. Creation of Entity Relationship Diagram (ERD)

    ERD.png

  2. Database Creation using DDL syntax

    Query to Create Database

    Query to Create Database

    For the database creation, I use Microsoft SQL Server Management Studio. The first step is creating a database. After that, I create tables for each entity previously defined in the ERD. At this stage, I ensured that each attribute aligned with the requirements specified by NTESLE Company. For example:

  3. Insert Data Into Tables

    Data Dummy

    Data Dummy

    Before adding data to the database, I created dummy data in Excel. This is done for convenience, because in this project it is only allowed to use the syntax to entry the data into tables. Therefore, I had to entry the data one by one, which took quite a long time. It is more efficient if we are allowed to import data directly from Excel into the database using the features provided by Microsoft SQL Server Management Studio.

    Below is query to insert data into tables:

    Query to Insert Data Into Tables

    Query to Insert Data Into Tables

  4. Simulate the Sales and Purchase Transaction Process

    I created two scenarios to simulate the sales and purchase transactions.

  5. Requested Database Queries by NTESLE Company Manager

    To support database management process in NTESLE Company the manager of NTESLE Company asked me to provide some query that resulting important data. Below are the requested requirements along with the corresponding queries.

Conclusion