Question: 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

1 Expert Approved Answer
Step: 1 Unlock 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!