Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following three tables, primary and foreign keys. Table Name SalesPeople Attribute Name Type Key Type EmployeeNumber Number Primary Key Name Character JobTitle Character

Consider the following three tables, primary and foreign keys.

Table Name SalesPeople

Attribute Name Type Key Type

EmployeeNumber Number Primary Key

Name Character

JobTitle Character

Address Character

PhoneNumber Character

YearsInPosition Number

Table Name ProductDescription

Attribute Name Type Key Type

ProductNumber Number Primary Key

ProductName Character

ProductPrice Number

Table Name SalesOrder

Attribute Name Type Key Type

SalesOrderNumber Number Primary Key

ProductNumber Number Foreign Key

EmployeeNumber Number Foreign Key

SalesOrderDate Date

Assume that you draw up a new sales order for each product sold.

Develop the following queries:

  1. All the Sales People with more than five years in position.

  1. All the Products that cost more than $50.

  1. All the Sales Orders sold by Sales People less than 3 years in the position.

  1. All the Product Names sold by Sales People more than 5 years in the position.

  1. Total Revenue sold by Sales People less than 3 years in the position.

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago