Dbms Lab2
Dbms Lab2
+---------+----------------+----------+
| hotelno | name | city |
+---------+----------------+----------+
| 1 | Vivanta_By_Taj | Banglore |
| 2 | ITC_Gardenia | London |
| 3 | KingsFort | London |
| 4 | Amber | London |
| 5 | HillView | Banglore |
| 6 | KailashIn | Banglore |
+---------+----------------+----------+
6 rows in set (0.00 sec)
mysql> select sum(price) from Room where roomno not in (select R.roomno from Hotel
H,Room R,Booking B where name='ITC_Gardenia' and H.hotelno=R.hotelno and
R.hotelno=B.hotelno and R.roomno=B.roomno) and hotelno=2;
+------------+
| sum(price) |
+------------+
| 365 |
+------------+