Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a SQL statement to show the list of distinct cities the salesmen come from.(3 marks) Write a SQL statement to showthe customer name, city

  1. Write a SQL statement to show the list of distinct cities the salesmen come from. (3 marks)
  2. Write a SQL statement to show the customer name, city and grade where the grade of a customer is greater than 100 (3 marks)
  3. Write a SQL statement to show city name and the number of customers from each city (3 marks)
  4. Write a SQL statement to show the salesman and the customers served by that salesman. (3 marks)
  5. Write a SQL statement to show the customer name, city name of a customer, salesman name and commission where a salesman gets more than 0.12 commission from the company. (3 marks)

F. Write a SQL statement to show the maximum grade of a customer where the city of customer is in London. (3 marks)


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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

Students also viewed these Databases questions

Question

When do you use a make-table query?

Answered: 1 week ago