My Homework Help logo
  • Our services
    • Math homework Help
    • Excel Homework Help
    • Case Study Assignment Help | Do My Case Study Homework
    • PowerPoint Presentation Help
    • CIPD Assignment Help
    • Civil Engineering Homework Help – Do My Asssignment For Me
    • CPM Homework Help | Do My CPM Assignment For Me
    • Discussion Board Homework Help
    • Finance Homework Help – Do My Finance Assignment For Me
    • Nursing Homework Help
    • Programming Homework Help
    • SPSS Homework Help | Do My SPSS Assignment For Me Cheap
    • Statistics Homework Help
  • About Us
  • How It Works
  • My account
  • Order now
Order Now
Homework Help

Database | Database management systems homework help

2 min read
Posted on 
April 3rd, 2024
Home Homework Help Database | Database management systems homework help

Consider the following three relations:

TRAVEL_AGENT (name, age, salary)

CUSTOMER (name, departure_city, destination, journey_class)

TRANSACTION (number, cust_name, travel_agent_name, amount_paid)

Write SQL statements to answer the following questions.

a. Compute the number of different customers who have a transaction.

b. Display the name of the oldest travel agent.

c. List the total number of transactions for each travel agent. Consider only those transactions where the amount paid exceeds 1 000.

d. Display the names and ages of the travel agents who have arranged journeys for customer “John Smith”, in descending order of age (use a subquery).

e. Display the names and ages of travel agents who have arranged journeys for customer “John Smith”, in descending order of age (do not use a subquery).

f. Display the age of travel agents who have arranged journeys for customer “John Smith” to “Ottawa” (use a subquery).

g. Display the age of travel agents who have arranged journeys for customer “John Smith” to “Ottawa” (do not use a subquery).

h. Display the names and salaries of all travel agents who did not arrange journeys for customer “John Smith”, in ascending order of salary.

i. Display the names of travel agents who have five or more transactions.

j. Display the names of all travel agents who have arranged at least ten journeys to “Ottawa”.

Order an Essay Now & Get These Homework Help Features For Free:

Turnitin Report

Formatting

Title Page

Citation

Outline

Place an Order
Share
Tweet
Share
Tweet
Calculate the price
Pages (275 words)
$0.00
My Homework Help
Company
  • Get Homework Help
  • Home
  • About Us
  • How It Works
Legal
  • About
  • How It Works
How Our Homework Help and Essay Service:
My Homework Help The essays written at My Homework Help are not intended to be forwarded as finalized work, but they can still serve a dual purpose of research and study. My Homework Help does not endorse or encourage any form of plagiarism.
Subscribe
No Spam
  • Math homework Help
  • Excel Homework Help
  • Case Study Assignment Help | Do My Case Study Homework
  • PowerPoint Presentation Help
  • CIPD Assignment Help
  • Civil Engineering Homework Help – Do My Asssignment For Me
  • CPM Homework Help | Do My CPM Assignment For Me
  • Discussion Board Homework Help
  • Finance Homework Help – Do My Finance Assignment For Me
  • Nursing Homework Help
  • Programming Homework Help
  • SPSS Homework Help | Do My SPSS Assignment For Me Cheap
  • Statistics Homework Help
© 2025 My Homework Help. All rights reserved.
My Homework Help will be listed as ‘My Homework Help’ on your bank statement.

WhatsApp us