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

SQL Queries

The document outlines the creation of a hotel database with three tables: roomtype, restaurent, and laundary. It includes the definition of each table's structure and the insertion of various records for room types, restaurant items, and laundry services. The roomtype table categorizes rooms with corresponding rents, while the restaurent and laundary tables list food items and laundry services with their rates.

Uploaded by

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

SQL Queries

The document outlines the creation of a hotel database with three tables: roomtype, restaurent, and laundary. It includes the definition of each table's structure and the insertion of various records for room types, restaurant items, and laundry services. The roomtype table categorizes rooms with corresponding rents, while the restaurent and laundary tables list food items and laundry services with their rates.

Uploaded by

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

create database hotel;

use hotel;create table roomtype (sno varchar(5),roomtype varchar(10),rent


integer(10));
insert into roomtype values ('1','type A',1000);
insert into roomtype values ('2','type B',2000);
insert into roomtype values ('3','type C',3000);
insert into roomtype values ('4','type D',4000);
create table restaurent (sno integer(10),itemname varchar(10),rate integer(10));
insert into restaurent values(1,"tea",10);
insert into restaurent values(2,"coffee",10);
insert into restaurent values(3,"colddrink",20);
insert into restaurent values(4,"samosa",10);
insert into restaurent values(5,"sandwich",50);
insert into restaurent values(6,"Dhokla",30);
insert into restaurent values(7,"kachori",10);
insert into restaurent values(8,"milk",20);
insert into restaurent values(9,"noodles",50);
insert into restaurent values(10,"pasta",50);
create table laundary(sno integer(10),itemname varchar(10),rate integer(10));
insert into laundary values(1,"pant",10);
insert into laundary values(2,"shirt",10);
insert into laundary values(3,"suit",10);
insert into laundary values(4,"sari",10);

You might also like