SQL Subquery Exercises: Display the commission of all the salesmen servicing customers in Paris
SQL SUBQUERY : Exercise-6 with Solution
6. Write a query to display the commission of all the salesmen servicing customers in Paris.
Sample table: Salesman
Sample table : Customer
SELECT commission FROM salesman WHERE salesman_id IN (SELECT salesman_id FROM customer WHERE city = 'Paris');
Output of the Query:
Contribute your code and comments through Disqus.
What is the difficulty level of this exercise?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework