In: Computer Science
Colonial Adventure Tours Case
select name from TRIP where trip NOT LIKE 'New Hamshire%'
select name ,startLocation from trip where type ='Biking'
select name from trip where type ='Hiking' and distance > 6
select name from trip where type ='Padding' OR startLocation = 'Vermont (VT)'
select count(*) from trip where type in ('Hiking','Biking')
select t.tripName, t.type, MAX(groupSize)
From trip t, guide g
where g.guide ='Susan Kiley'
and g.tripName = t.name;
group by t.tripName, t.type;
select name , startLocation from trip
order by startLocation, name;
select name from trip t, guide g
where t.type ='Hiking'
and g.guide = 'Rita Boyers'
and g.tripName = t.name;
select startLocation,count(*) from trip
group by startLocation
select count(*) from trip
where price > 20 and price < 75
select r.reservationID, t.lastName, t.name
from Reservation, trip
where (select (count*) from Reservation group by name) > 4
Let me know if you have any doubts or if you need anything to change. If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions. Thank You! ===========================================================================