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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
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
Transcribed Image 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY