0% found this document useful (0 votes)
3 views

DBMS project

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

DBMS project

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

DBMS

Members:

Venjaymar, Fontanilla

Mendoza, Eurie B.

Vicente, Alexander

Palisoc, Darwin

Interview Documentation

The company is about decorating events like birthdays, were the process is the costumer will inquire
where it wall ask what is the packages they offer, ranging from lowest to highest value. After the
costumer pick the packages the business will ask the design or theme the costumer wants, price also
varies where the client wants, after all of it agreeds by the costumer, the company will give the
costumer a form where. And contracts containing what is good to take home and what is not, time of
set, time of pullout, when to pay the full payment, and signature of both parties, liabalities and what the
compant will only do are also in the contract, the next process is preparing for event, execution on the
day of the event where the task will be given to each employees and instructions on what they will do. If
the event is small it take to 2hours preparation, 4-6 hours for medium and atleast a day before the
event for big one.

Database Design and Sample Data

CREATE TABLE Sales (

SaleID INT AUTO_INCREMENT PRIMARY KEY,

SaleDate DATE NOT NULL,

Amount DECIMAL(12, 2) NOT NULL

);

INSERT INTO Sales (SaleDate, Amount) VALUES

('2024-11-01', 25000.00),

('2024-11-10', 34000.00),

('2024-11-17', 65000.00),

('2024-11-20', 29000.00);

SELECT DATE_FORMAT(SaleDate, '%Y-%m') AS MonthYear,


SUM(Amount) AS GrossSales

FROM Sales

GROUP BY DATE_FORMAT(SaleDate, '%Y-%m');

CREATE TABLE Expenses (

ExpenseID INT AUTO_INCREMENT PRIMARY KEY,

ExpenseType VARCHAR(50) NOT NULL,

ExpenseDate DATE NOT NULL,

Amount DECIMAL(12, 2) NOT NULL

);

INSERT INTO Expenses (ExpenseType, ExpenseDate, Amount) VALUES

('EmployeeSalary', '2024-11-01', 69000.00),

('Rent', '2024-11-01', 11000.00),

('RestockFee', '2024-11-15', 7600.00);

-- query for sales summary

WITH SalesSummary AS (

SELECT DATE_FORMAT(SaleDate, '%Y-%m') AS MonthYear,

SUM(Amount) AS GrossSales

FROM Sales

GROUP BY DATE_FORMAT(SaleDate, '%Y-%m')

),

ExpensesSummary AS (

SELECT DATE_FORMAT(ExpenseDate, '%Y-%m') AS MonthYear,

SUM(Amount) AS TotalExpenses

FROM Expenses

GROUP BY DATE_FORMAT(ExpenseDate, '%Y-%m')


)

SELECT

s.MonthYear,

s.GrossSales,

COALESCE(e.TotalExpenses, 0) AS TotalExpenses,

(s.GrossSales - COALESCE(e.TotalExpenses, 0)) AS NetSales

FROM SalesSummary s

LEFT JOIN ExpensesSummary e ON s.MonthYear = e.MonthYear;

-- table for packages

CREATE TABLE Packages (

PackageID INT AUTO_INCREMENT PRIMARY KEY, -- Unique identifier for each package

PackageName VARCHAR(255) NOT NULL, -- Name of the package (e.g., "Simple Party",
"Grande Celebration")

PackageDescription TEXT, -- Description of what the package includes

PackageType ENUM('Simple', 'Grande') NOT NULL, -- Type of the package (Simple or Grande)

PackagePrice DECIMAL(10, 2) NOT NULL, -- Total price of the package

DownPaymentPercentage DECIMAL(5, 2) NOT NULL, -- Percentage of the down payment required

DownPaymentAmount DECIMAL(10, 2) AS (PackagePrice * DownPaymentPercentage / 100), --


Calculated down payment amount based on package price and down payment percentage

DateAdded TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- Date when the package was added

LastUpdated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP -- Last


update time for package record

);

INSERT INTO Packages (PackageName, PackageDescription, PackageType, PackagePrice,


DownPaymentPercentage)

VALUES

('Simple Party', 'Includes 50 red balloons, a party banner, and 10 party hats', 'Simple', 15000.00, 20),
('Grande Celebration', 'Includes 200 balloons, 5 party banners, 30 party hats, and a live DJ', 'Grande',
32000.00, 30),

('Deluxe Party', 'Includes 100 balloons, a party banner, custom cake, and a magician show', 'Grande',
75000.00, 40);

Reflections

After the interview was held I identify one table reports the costumer event summary where it stores
summary details of the events they will handle and design this database code on mysql, I also help
suggesting the other tables on what its possible fields will be and managing the documentations for the
group. The company we interview offered a decorating event services and party suppplies like birthdays
etc…, where they offer a packages from various price range to fit for every costumer and will ask the
event description like theme, design and other details, after all is agreed there will be contracts and
forms to clearly understand what the both parties agreed on and after that the company preparation
takes about 2 hours to atleast A day before the event this varies on how big the venue(Eurie B.
Mendoza).

I design and code Sales and Expenses summary table to mysql and give suggestion on the summary of
the interview for better understanding of the grou. The company is organising events like parties and
wedding, they are responsible for the setup or the design of the venue, they have an options on which
the customer can choose what package they want then they negotiate for the price then down payment
after that they fill up form for the contract if the event is large then they spent time preparing from 2
hours up to 1 day of preparation depending on the size of the event and the design that their customer
wants, after i learned about how their company operate i realize how difficult it was to organized an
event especially when your employees don’t know much about computers since they mostly start the
planing on the computers(Alexander Vicente).

Designing and coding the customer feedback summary that based on our findings in the interview.The
company that we interviewed is Lux Merchantile, and it’s about decorating events like birthdays,
weddings, partys, and etc. The procedure is where the customer will inquire what packages they are
offering, the price ranges to lowest to highest depending on the client’s wants and needs. After that the
company will give a form to the client where the name of the event, design, colors,venue, time of event
and the client will give a downpayment(20% for small and 30% big) and contracts containing (important
for big events) what the client can take home and what is not, time of set, time of pullout, when to pay
the full payment, and signature of both parties, liabilities and what the company will only do are also in
the contract. The next procedure is the preparation where the company will give the instructions and
tasks to employees so that they know what they will do. The execution of the event depends on how
small or big it is, if it’s small it will only take 2-6 hours to complete it on the other hand big event will
take a day before the event(Darwin Palisoc.).
Creating the customer payment summary may be hard for me, but I learned that showcasing the
importance of consolidating data from multiple tables just to provide a holistic view for accurate
reporting, and also it helps me to gain more knowledge more on Business Insights. It allows me to learn
on how to manage the resources efficiently(Venjaymar Fontanilla)..

You might also like