Question: SQL Queries Consider the following three tables, primary and foreign keys. Key Type Primary key Table Name Sales People Attribute Name Employee Number Name Job

SQL Queries SQL Queries Consider the following three tables, primary and foreign keys.Key Type Primary key Table Name Sales People Attribute Name Employee Number

Consider the following three tables, primary and foreign keys. Key Type Primary key Table Name Sales People Attribute Name Employee Number Name Job Title Address Phone Number YearsInPosition Type Number Character Character Character Character Number Table Name Product Description Attribute Name Type ProductNumber Number ProductName Character Product Price Number Key Type Primary key Type Table Name SalesOrder Attribute Name SalesOrder Number Product Number Employee Number SalesOrder Date Number Number Number Date Key Type Primary key Foreign Key Foreign Key Assume that you draw up a new sales order for each product sold. Develop the following queries: Develop the following queries: a. All the Sales People with more than five years in position. b. All the Products that cost more than $50. C. All the Sales Orders sold by Sales People less than 3 years in the position. d. All the Product Names sold by Sales People more than 5 years in the position. e. Total Revenue sold by Sales People less than 3 years in the position

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve the queries lets use the given tables and relationships Here are the SQL queries for each r... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!