Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 Queriesimage text in transcribedimage text in transcribed

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

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions