0% found this document useful (0 votes)
14 views12 pages

Abuja Restaurant

The document outlines the design for an 'Abuja Restaurant Customer Recording Database System' using Microsoft Access, detailing key tables such as Customers, Orders, MenuItems, OrderDetails, Payments, and Feedback. It describes the fields for each table, their data types, and relationships between them, emphasizing the importance of referential integrity. Additionally, it offers optional additions like a Staff table and a Reservations table for enhanced functionality.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views12 pages

Abuja Restaurant

The document outlines the design for an 'Abuja Restaurant Customer Recording Database System' using Microsoft Access, detailing key tables such as Customers, Orders, MenuItems, OrderDetails, Payments, and Feedback. It describes the fields for each table, their data types, and relationships between them, emphasizing the importance of referential integrity. Additionally, it offers optional additions like a Staff table and a Reservations table for enhanced functionality.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Here’s a complete design for the "Abuja Restaurant Customer Recording Database System" using

Microsoft Access, including:

---

✅ Main Purpose:

To record and manage customer details, orders, payments, and feedback efficiently.

---

🔶 Tables and Their Descriptions

Below are the key tables you should create in Microsoft Access:

---

1. Customers

Field Name Data Type Description

CustomerID AutoNumber (PK) Unique identifier for each customer

FullName Short Text Customer's full name


PhoneNumber Short Text Customer's contact number

Email Short Text Optional

DateRegistered Date/Time Date the customer registered

---

2. Orders

Field Name Data Type Description

OrderIDAutoNumber (PK) Unique identifier for the order

CustomerID Number (FK) Linked to Customers table

OrderDate Date/Time Date the order was placed

TotalAmount Currency Total cost of the order

PaymentStatus Short Text e.g., Paid, Unpaid

---

3. MenuItems

Field Name Data Type Description


ItemID AutoNumber (PK) Unique identifier for menu item

ItemName Short Text Name of the menu item

Category Short Text e.g., Drink, Food, Dessert

Price Currency Price per unit

Available Yes/No Is item available?

---

4. OrderDetails

Field Name Data Type Description

OrderDetailID AutoNumber (PK) Unique detail ID

OrderIDNumber (FK) Linked to Orders

ItemID Number (FK) Linked to MenuItems

Quantity Number Number of items ordered

SubTotal Currency Quantity × Price

---
5. Payments

Field Name Data Type Description

PaymentID AutoNumber (PK) Unique ID for payment

OrderIDNumber (FK) Linked to Orders

PaymentDate Date/Time Date of payment

AmountPaid Currency Amount paid

PaymentMethod Short Text e.g., Cash, Card, Mobile Money

---

6. Feedback

Field Name Data Type Description

FeedbackID AutoNumber (PK) Unique feedback ID

CustomerID Number (FK) Linked to Customers

FeedbackDate Date/Time Date of feedback

Comment Long Text Customer's feedback or review

Rating Number e.g., 1 to 5 stars


---

🔷 Relationships Between Tables

Here's how the tables should relate to each other:

Customers (1) ───────< Orders (∞)

Orders (1) ───────< OrderDetails (∞)

MenuItems (1) ───────< OrderDetails (∞)

Orders (1) ───────< Payments (∞)

Customers (1) ───────< Feedback (∞)

Key Relationship Rules:

One Customer can place many Orders.

One Order can have multiple OrderDetails.

Each OrderDetail links to one MenuItem.

Each Order can have one or more Payments.

Each Customer can give multiple Feedback entries.


---

✅ To Create Relationships in Access:

1. Go to Database Tools > Relationships.

2. Add all six tables.

3. Drag the primary key of the "one" table to the foreign key in the "many" table.

4. Enable referential integrity and cascade updates/deletes as needed.

---

Would you like me to give you a downloadable Access file (ACCDB) or show you screenshots of the
design?

Response 2
Here's how you can design and implement a simple Microsoft Access database for Abuja Restaurant
Customer Recording System. This database will help in recording customer visits, orders, and other
related information.

---

✅ 1. Tables to Create

Here are the key tables and their fields:

---

1. Customers

Field Name Data Type Description

CustomerID AutoNumber (PK) Unique customer ID

FirstName Short Text Customer first name

LastName Short Text Customer last name

Phone Short Text Contact number

Email Short Text Email address (optional)

AddressShort Text Customer address (optional)

Gender Short Text Male/Female


---

2. Visits

Field Name Data Type Description

VisitID AutoNumber (PK) Unique visit record

CustomerID Number (FK) Linked to Customers.CustomerID

VisitDate Date/Time Date and time of visit

TableNumber Short Text Table number the customer sat at

NumberOfGuests Number Guests that came with the customer

Notes Long Text Special request or notes (optional)

---

3. Orders

Field Name Data Type Description

OrderIDAutoNumber (PK) Unique order ID

VisitID Number (FK) Linked to Visits.VisitID


OrderDate Date/Time When the order was placed

TotalAmount Currency Total cost of the order

PaymentMethod Short Text Cash, Mobile Money, Card, etc.

---

4. MenuItems

Field Name Data Type Description

ItemID AutoNumber (PK) Unique menu item ID

ItemName Short Text Name of food or drink

Description Long Text Description of the item

Price Currency Price per item

Category Short Text Food, Drink, Dessert, etc.

---

5. OrderDetails

Field Name Data Type Description


OrderDetailID AutoNumber (PK) Unique record

OrderIDNumber (FK) Linked to Orders.OrderID

ItemID Number (FK) Linked to MenuItems.ItemID

Quantity Number Number of items ordered

LineTotal Currency Calculated: Quantity * MenuItems.Price

---

✅ 2. Relationships Between Tables

Here’s how the tables relate:

Customers (1) --- (many) --- Visits → by CustomerID

Visits (1) --- (many) --- Orders → by VisitID

Orders (1) --- (many) --- OrderDetails → by OrderID

MenuItems (1) --- (many) --- OrderDetails → by ItemID


---

✅ 3. Relationship Diagram in MS Access

In Access, go to:

Database Tools → Relationships

Add all the tables.

Drag to create relationships as shown:

Customers.CustomerID → Visits.CustomerID

Visits.VisitID → Orders.VisitID

Orders.OrderID → OrderDetails.OrderID

MenuItems.ItemID → OrderDetails.ItemID

Make sure to enforce Referential Integrity when creating relationships.

---

✅ 4. Optional Additions
Staff table: If you want to record who served the customer.

Reservations table: If bookings are made in advance.

Feedback table: If you record customer reviews or ratings.

---

Would you like a sample Access file (.accdb) with these tables pre-created for you? I can guide you step
by step to create it or help you download a sample.

You might also like