0% found this document useful (0 votes)
2 views3 pages

Dbms Aditya22

The document outlines an experiment in a DBMS course focused on hotel booking management. It includes objectives such as listing deluxe room bookings, updating a specific booking's checkout date, and deleting standard room bookings. The document provides SQL scripts for creating a booking table, inserting data, and executing the specified queries.

Uploaded by

Aditya 18--
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Dbms Aditya22

The document outlines an experiment in a DBMS course focused on hotel booking management. It includes objectives such as listing deluxe room bookings, updating a specific booking's checkout date, and deleting standard room bookings. The document provides SQL scripts for creating a booking table, inserting data, and executing the specified queries.

Uploaded by

Aditya 18--
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Experiment 1.1
Student Name:aditya UID 23bet10090
Branch:BE IT Section/Group: 818 A
Semester: 4TH Date of Performance:20JAN
Subject Name:DBMS Subject Code:23ITH205

1. Aim: Hotel booking management

2. Objective:list all the booking for deluxe rooms


Update the checkdate for bookingid=10
Delete booking where where roomtype standard

3. DBMS script and output:


CREATE TABLE booking1 ( bookingId INT PRIMARY KEY,
customerName VARCHAR(100), roomType VARCHAR(50),
checkinDate DATE, checkoutDate DATE);

INSERT INTO booking1 (bookingId, customerName, roomType, checkinDate,


checkoutDate) VALUES (10, 'John Doe', 'Deluxe', TO_DATE('2025-01-10',
'YYYY-MM-DD'), TO_DATE('2025-01-15', 'YYYY-MM-DD'));
INSERT INTO booking1 (bookingId, customerName, roomType, checkinDate,
checkoutDate) VALUES (20, 'Jane Smith', 'Standard', TO_DATE('2025-01-12',
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

'YYYY-MM-DD'), TO_DATE('2025-01-18', 'YYYY-MM-DD'));INSERT INTO


booking1 (bookingId, customerName, roomType, checkinDate, checkoutDate)
VALUES (30, 'Alice Brown', 'Deluxe', TO_DATE('2025-01-14', 'YYYY-MM-
DD'), TO_DATE('2025-01-20', 'YYYY-MM-DD'));
INSERT INTO booking1 (bookingId, customerName, roomType, checkinDate,
checkoutDate) VALUES (40, 'Bob White', 'Suite', TO_DATE('2025-01-16',
'YYYY-MM-DD'), TO_DATE('2025-01-22', 'YYYY-MM-DD'));
INSERT INTO booking1 (bookingId, customerName, roomType, checkinDate,
checkoutDate) VALUES (50, 'Charlie Green', 'Standard', TO_DATE('2025-01-18',
'YYYY-MM-DD'), TO_DATE('2025-01-25', 'YYYY-MM-DD'));

select * from booking1;

SELECT * FROM booking1 WHERE roomType = 'Deluxe';


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

DELETE FROM booking WHERE roomType = 'Standard';

UPDATE booking1 SET checkoutDate = TO_DATE('2025-01-30', 'YYYY-MM-


DD')WHERE bookingId = 10;

You might also like