Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 statement

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

List the components of the strategic management process. page 72

Answered: 1 week ago