Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following schema for a database that keeps the information about business trips and their associated expenses by employees: a . Get a list

Consider the following schema for a database that keeps the information
about business trips and their associated expenses by employees:
a. Get a list of all the different destination cities where the employees have taken
trips.
b. Find all the employee information for employees who work in Department 4.
c. Get complete trip records (but not their associated expenses) for all trips with
departure dates after July 1 of the current year.
d. Find the names of all employees who have departed on trips from Shanghai.
e. Find the SSN of all employees who have any single expense item of more than
$1500 for any trip.
f. Find the names of all employees who have any expense item with value
Entertainment.
g. Find the destination cities of all trips taken by employees who have the job title of
Manager.
h. Find the names and departments of all employees who have a single expense item
of over $500 since January 1 of this year.
i. Find the items and amounts of all expenses for a trip to Cairo beginning on
January 10 of this year taken by employee Jane.
j. Find the names, departments, and job titles of all employees who have any expense
item with value Service Charge for trips taken to NYC last year, along with the
date and amount of the expense.

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

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

4-16. We dont make refunds on returned merchandise that is soiled.

Answered: 1 week ago