From the Salesm an and Customer tables below, write SQL statements to do the following: a) List the sales man id, rating and names of those sales men who getrating from 3 to 5, sorted DESCENDING by...


From the Salesm an and Customer tables below, write SQL statements to do the<br>following:<br>a) List the sales man id, rating and names of those sales men who getrating from 3 to 5,<br>sorted DESCENDING by rating.<br>b) List all the customers' informat ion whose name starts with 'F' and the fourth<br>character is T, rests may be any charac ter.<br>c) List the name andcountry of those customers and sales men who belongs to the same<br>country.<br>Salesman table:<br>Salesman Salesman_ rating<br>_id<br>country<br>name<br>2001<br>Mc Lyon<br>3<br>Italy<br>2005<br>James hood<br>2<br>Canada<br>2045<br>Paul Hen<br>USA<br>2010<br>Nail Alex<br>4<br>France<br>2060<br>Salm E<br>5<br>KSA<br>Cust omer table:<br>Cust_id<br>Cust_nam<br>grade<br>country<br>Salesman<br>e<br>_id<br>1<br>Nick<br>100<br>France<br>2010<br>Rimando<br>2<br>Brad Davis<br>400<br>Canada<br>2005<br>3<br>Fabian<br>200<br>Japan<br>2045<br>Johnson<br>4<br>UK<br>Jozy<br>Altidor<br>100<br>2010<br>5<br>Brad Guzan<br>500<br>Canada<br>2005<br>

Extracted text: From the Salesm an and Customer tables below, write SQL statements to do the following: a) List the sales man id, rating and names of those sales men who getrating from 3 to 5, sorted DESCENDING by rating. b) List all the customers' informat ion whose name starts with 'F' and the fourth character is T, rests may be any charac ter. c) List the name andcountry of those customers and sales men who belongs to the same country. Salesman table: Salesman Salesman_ rating _id country name 2001 Mc Lyon 3 Italy 2005 James hood 2 Canada 2045 Paul Hen USA 2010 Nail Alex 4 France 2060 Salm E 5 KSA Cust omer table: Cust_id Cust_nam grade country Salesman e _id 1 Nick 100 France 2010 Rimando 2 Brad Davis 400 Canada 2005 3 Fabian 200 Japan 2045 Johnson 4 UK Jozy Altidor 100 2010 5 Brad Guzan 500 Canada 2005

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here