Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Subject: Database Systems Can you please answer questions 4, 5, and 6? I will give a thumb up. Consider the following tables (Salesman and Customer,

Subject: Database Systems

Can you please answer questions 4, 5, and 6? I will give a thumb up.

image text in transcribedimage text in transcribed

Consider the following tables (Salesman and Customer, respectively). 4) Assume that the salesman's hourly salary is calculated by multiplying the salesman's commission with 100. create a view of salesmen showing their corresponding salaries. Return customer name, commission and salary.-.-9 5) Write an SQL query to find the difference between the salespeople's salaries and the average salary.--9 6) Write an SQL query to show all people involved in this business and their role (customer or salesman). Return ID, name, and role.-.9

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

More Books

Students also viewed these Databases questions