2. Given a detail of rooms available at Miraculous Hotel in Table 1 below:
Type of
Number and
Room size
Number of
Price (RM)
Room
Type of Bed
(m2)
guests
Single
1 Single bed
40
1
160
Double
1 Queen bed
45
2
210
Triple
3 Single beds
60
3
280
Family
2 Queen beds
70
4
350
Table 1
Build Prolog query for the following:
(1) Display all the room type with the room price less than RM 300 and suitable for three guests and below.
Comments
Leave a comment