Answered step by step
Verified Expert Solution
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 Queries
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 positionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started