You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
351 B

/*Write a SQL statement to find the list of customers who appointed a salesman for their jobs who gets a commission from the
company is more than 12%.*/
SELECT a.cust_name AS "Customer Name",, AS "Salesman", b.commission
FROM customer a
INNER JOIN salesman b
ON a.salesman_id=b.salesman_id
WHERE b.commission>.12;