-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_db.sql
More file actions
45 lines (42 loc) · 1.12 KB
/
create_db.sql
File metadata and controls
45 lines (42 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
CREATE DATABASE hotel_booking;
USE hotel_booking;
CREATE TABLE bookings (
id INT AUTO_INCREMENT PRIMARY KEY,
hotel VARCHAR(255),
is_canceled INT,
lead_time INT,
arrival_date_year INT,
arrival_date_month VARCHAR(255),
arrival_date_week_number INT,
arrival_date_day_of_month INT,
stays_in_weekend_nights INT,
stays_in_week_nights INT,
adults INT,
children FLOAT,
babies INT,
meal VARCHAR(255),
country VARCHAR(255),
market_segment VARCHAR(255),
distribution_channel VARCHAR(255),
is_repeated_guest INT,
previous_cancellations INT,
previous_bookings_not_canceled INT,
reserved_room_type VARCHAR(255),
assigned_room_type VARCHAR(255),
booking_changes INT,
deposit_type VARCHAR(255),
agent FLOAT,
company FLOAT,
days_in_waiting_list INT,
customer_type VARCHAR(255),
adr FLOAT,
required_car_parking_spaces INT,
total_of_special_requests INT,
reservation_status VARCHAR(255),
reservation_status_date DATE,
name VARCHAR(255),
email VARCHAR(255),
phone_number VARCHAR(255),
credit_card VARCHAR(255)
);
exit;