SQL QUERIES
SQL QUERIES
iii) Find the names of salespeople who have two or more orders
iv) Find the names of salespeople who have an order with all
customers.
3) Consider the following schema & answer the following SQL quires. Teacher (Tid, Tname
Cid, City, Sal, Subject)
1) Find the name of teachers who lives in 'Nagpur' and salary is greater than '15,000/-'
2)Find all teacher's who teacher 'DBMS'
3)Find the subject name whose name ends with char 's'.
i) Find the name, street, city of all employees who work for 'IBM' and earn
more tham
Rs. 15,000/-
b) Find the names, street address and cities of residence of all employees
who work for
first Bank corporation and earn more than $10000.
c) Find the name of employee who works for 'IBM' and earns salary
greeter than 20,000
i) Find the names and quota percentages of salespeople who have an order with
ii) Find the quota percentage of salespeople who have an order with a customer in
MUMBAI.
iii) Find the names of salespeople who have two or more orders.
iv) Find the names of salespeople who have an order with all customers