Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Repeat exercise 11, but this time list only hiking tips in the state of New Hampshire (NH), list each trip only once, and sort the

Repeat exercise 11, but this time list only hiking tips in the state of New Hampshire (NH), list each trip only once, and sort the results in descending order by trip name.

Question 11. Find the trip name of all reservations for hiking trips and sort the results by trip name in ascending order.

SQL Code for Q11:

SELECT DISTINCT TRIP_NAME FROM RESERVATION, TRIP WHERE RESERVATION.TRIP_ID = TRIP.TRIP_ID AND TYPE ='Hiking' Order by TRIP_NAME;

Having trouble getting the SQL code right for Q18

using textbook A Guide to SQL 9th edition and oracle application express to run the SQL code

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions