Answered step by step
Verified Expert Solution
Question
1 Approved Answer
COURSE: DATABASE ENGINEERING i) List the names of all buses with at least one journey priced below RM15. ii) List the names of all destinations
COURSE: DATABASE ENGINEERING
i) List the names of all buses with at least one journey priced below RM15.
ii) List the names of all destinations that do not have any buses.
iii) Find the number of buses going to Ipoh.
iv) List the name of the destination with the least price.
A relational database contains details about journeys from Kuala Lumpur to a number of destinations. BUS (BusCode, BusName) JOURNEY (BusCode, DesCode, Price) DESTINATION (DesCode, DesName, Distance) Each bus is assigned a unique code (BusCode) and a name. Each destination has a unique code (DesCode), a destination name (DesName) and the distance (Distance) of the destination from Kuala Lumpur. The relation JOURNEY records the price of an adult fare from Kuala Lumpur to the given destination by a specific bus; several buses may operate over the same route. Based on the relational schemas above, formulate the following queries using SQL and RA statementStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started