Fetch Resort Details in SQL

Question:

Fetch Resort Details

 Write a query to display the resort name and its manager name for resort located at “JAIPUR”. Sort by resort name .

Fetch Resort Details

Code:

Main.sql

select r.resortname, mg.name from resort r join Manager mg
on r.managerID = mg.managerID where r.townname = 'JAIPUR'
order by 1;

Recommended:

Leave a Comment

Your email address will not be published. Required fields are marked *

x