Professional Documents
Culture Documents
ادارة الفنادق
ادارة الفنادق
2. Customer Entity:
▪ This entity stores information about the hotel's clientele.
▫ Attributes:
- Customer Number: Unique identifier for each customer.
- Customer Name: Name of the customer.
- ID Number: Identification number of the customer.
- Country: Country of origin of the customer.
- Age: Age of the customer.
3. Reservations Entity:
▪ This entity manages room reservations made by customers.
▫ Attributes:
- Room Number: Unique identifier for each hotel room.
- Reservation Date: Date on which the room was reserved.
- Registration Number: Identifier linking the reservation to a specific customer.
- Price: Price associated with the room reservation.
4. Food Entity:
▪ This entity contains information about the food items available in the hotel's
restaurant.
▫ Attributes:
- Code: Unique identifier for each food item.
- Food Name: Name of the food item.
- Price: Price of the food item.
2. Customer Table:
4. Food Table:
1 Burger 10
2 Pizza 12
3 Salad 8
4 Pasta 15
5 Steak 20
ERD
Mapping technique
Normalization
1. HotelEmployee Table:
▪ EmployeeInfo Table:
EmployeeNumber Salary
1 5000
2 4500
3 5500
4 4800
5 5200
▪ HotelEmployee Table:
2. Customer Table:
▪ CustomerDetails Table:
1 USA 25
2 Canada 30
3 China 28
4 Spain 35
5 Brazil 40
Normalization
▪ CREATE TABLE EmployeeInfo (
EmployeeNumber INT PRIMARY KEY,
Salary DECIMAL(10, 2)
);
SELECT *
FROM HotelEmployee;
Query 2: Retrieve all customers' information:
SELECT*
FROM CustomerDetails;
Query 3: Retrieve the total number of employees: