0% found this document useful (0 votes)
4 views6 pages

Hotel Management Project Backend Data - 4

The document outlines the structure of a MySQL database named 'hms' which contains seven tables related to hotel management, including booking records, customer details, and various services like fashion, gaming, and restaurant. Each table is described with its fields, types, and characteristics, showcasing the data schema used for managing customer information and service billing. Sample queries demonstrate the retrieval of data from these tables, providing insight into the database's functionality.

Uploaded by

m.tauheedkh
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)
4 views6 pages

Hotel Management Project Backend Data - 4

The document outlines the structure of a MySQL database named 'hms' which contains seven tables related to hotel management, including booking records, customer details, and various services like fashion, gaming, and restaurant. Each table is described with its fields, types, and characteristics, showcasing the data schema used for managing customer information and service billing. Sample queries demonstrate the retrieval of data from these tables, providing insight into the database's functionality.

Uploaded by

m.tauheedkh
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/ 6

DATABASE / TABLES STRUCTURE

&
BACKEND DATA GENERATED THROUGH SOFTWARE
mysql> use hms

Database changed

mysql> show tables;

+----------------+

| Tables_in_hms |

+----------------+

| booking_record |

| c_details |

| fashion |

| gaming |

| restaurent |

| room_rent |

| total |

+----------------+

7 rows in set (0.02 sec)

mysql> desc booking_record;

+-----------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+-----------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| CHECK_IN | date | YES | | NULL | |

| CHECK_OUT | date | YES | | NULL | |

+-----------+-------------+------+-----+---------+-------+

3 rows in set (0.23 sec)

mysql> desc c_details;

Backend- 1
+-----------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+-----------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| C_NAME | varchar(30) | YES | | NULL | |

| C_ADDRESS | varchar(30) | YES | | NULL | |

| C_AGE | varchar(30) | YES | | NULL | |

| C_COUNTRY | varchar(30) | YES | | NULL | |

| P_NO | varchar(30) | YES | | NULL | |

| C_EMAIL | varchar(30) | YES | | NULL | |

+-----------+-------------+------+-----+---------+-------+

7 rows in set (0.03 sec)

mysql> desc fashion;

+--------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+--------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| DRESS | varchar(30) | YES | | NULL | |

| AMOUNT | varchar(30) | YES | | NULL | |

| BILL | varchar(30) | YES | | NULL | |

+--------+-------------+------+-----+---------+-------+

4 rows in set (0.01 sec)

mysql> desc gaming;

+-------------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+-------------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| GAMES | varchar(30) | YES | | NULL | |

| HOURS | varchar(30) | YES | | NULL | |

| GAMING_BILL | varchar(30) | YES | | NULL | |


Backend- 2
+-------------+-------------+------+-----+---------+-------+

4 rows in set (0.02 sec)

mysql> desc restaurent

-> ;

+----------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+----------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| CUISINE | varchar(30) | YES | | NULL | |

| QUANTITY | varchar(30) | YES | | NULL | |

| BILL | varchar(30) | YES | | NULL | |

+----------+-------------+------+-----+---------+-------+

4 rows in set (0.00 sec)

mysql> desc room_rent;

+-------------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+-------------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| ROOM_CHOICE | int(11) | YES | | NULL | |

| NO_OF_DAYS | int(11) | YES | | NULL | |

| ROOMNO | int(11) | YES | | NULL | |

| ROOMRENT | int(11) | YES | | NULL | |

+-------------+-------------+------+-----+---------+-------+

5 rows in set (0.02 sec)

mysql> desc total;

+----------------+-------------+------+-----+---------+-------+
Backend- 3
| Field | Type | Null | Key | Default | Extra |

+----------------+-------------+------+-----+---------+-------+

| CID | varchar(20) | YES | | NULL | |

| C_NAME | varchar(30) | YES | | NULL | |

| ROOMRENT | int(11) | YES | | NULL | |

| RESTAURENTBILL | int(11) | YES | | NULL | |

| GAMINGBILL | int(11) | YES | | NULL | |

| FASHIONBILL | int(11) | YES | | NULL | |

| TOTALAMOUNT | int(11) | YES | | NULL | |

+----------------+-------------+------+-----+---------+-------+

7 rows in set (0.02 sec)

mysql> select * from booking_record;

+------+------------+------------+

| CID | CHECK_IN | CHECK_OUT |

+------+------------+------------+

| C101 | 2021-03-18 | 2021-03-20 |

+------+------------+------------+

1 row in set (0.06 sec)

mysql> select * from c_details;


+------+----------------+-------------+-------+-----------+------------+--------

-----------------+

| CID | C_NAME | C_ADDRESS | C_AGE | C_COUNTRY | P_NO | C_EMAIL

+------+----------------+-------------+-------+-----------+------------+--------

-----------------+

| C101 | Santam Mohanta | Dharmanagar | 23 | Bharat | 9875623635 | santamm

[email protected] |

+------+----------------+-------------+-------+-----------+------------+--------

-----------------+
Backend- 4
1 row in set (0.03 sec)

mysql> select * from fashion;

+------+-------+--------+------+

| CID | DRESS | AMOUNT | BILL |

+------+-------+--------+------+

| C101 | 2 | 2 | 600 |

+------+-------+--------+------+

1 row in set (0.03 sec)

mysql> select * from gaming;

+------+-------+-------+-------------+

| CID | GAMES | HOURS | GAMING_BILL |

+------+-------+-------+-------------+

| C101 | 1 | 4 | 600 |

+------+-------+-------+-------------+

1 row in set (0.03 sec)

mysql> select * from restaurent;

+------+---------+----------+------+

| CID | CUISINE | QUANTITY | BILL |

+------+---------+----------+------+

| C101 | 1 | 1 | 300 |

+------+---------+----------+------+

1 row in set (0.03 sec)

mysql> select * from room_rent;


Backend- 5
+------+-------------+------------+--------+----------+

| CID | ROOM_CHOICE | NO_OF_DAYS | ROOMNO | ROOMRENT |

+------+-------------+------------+--------+----------+

| C101 | 4 | 2 | 201 | 5000 |

+------+-------------+------------+--------+----------+

1 row in set (0.02 sec)

mysql> select * from total;


+------+----------------+----------+----------------+------------+-------------+

-------------+

| CID | C_NAME | ROOMRENT | RESTAURENTBILL | GAMINGBILL | FASHIONBILL |

TOTALAMOUNT |

+------+----------------+----------+----------------+------------+-------------+

-------------+

| C101 | Santam Mohanta | 5000 | 300 | 600 | 600 |

6500 |

| C101 | Santam Mohanta | 0 | 0 | 0 | 0 |

0 |

+------+----------------+----------+----------------+------------+-------------+

-------------+

2 rows in set (0.02 sec)

Backend- 6

You might also like