Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL EXERCISE Each query in this exercise relies on a single table, but may require returning specific rows (the WHERE clause); specific groups (GROUP BY,

SQL EXERCISE

Each query in this exercise relies on a single table, but may require returning specific rows (the WHERE clause); specific groups (GROUP BY, HAVING); using specific order (ORDER BY); with calculations (SELECT, WHERE)

Using Select

Complete the following queries.

1) Display the elapsed trip time for all trips.

2) Display route number, start location end location (one field), and start time for trips departing between 8:00am and 4:00pm in January 2005.

3) Calculate the length of service in years for all operators (difference between hire date and the current date).

4) How many 2005 trips start or end in Yelm?

5) Display the total number of operators hired each year.

6) Display the number of operators hired in each year where more than one operator was hired.

7) How many operators have worked for more than three years?

8) What is the total elapsed time for all September 2004 trips serving Westfield Shopping Mall?

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago

Question

What roles have these individuals played in your life?

Answered: 1 week ago

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago