Prajwal Kumar Ray ISM Lab File
Prajwal Kumar Ray ISM Lab File
GREATER NOIDA
Table: - Emp_Dept
Table: - Emp_Salary
Table: - Project
Table: - Country
Table: - Client_Table
Table: - Emp_Project
Questions
1) Select the details of the employee whose name starts with p.
Ans.
4) Select the details of the employee who work either for department E-104 or E-
102.
Ans)
Table :- SALESMAN
Table :- ORDERS
Table :- CUSTOMER
Questions
1) Display name, commission, and city of all the salesmen.
Ans)
2) Retrieve salesman id of all salesmen from orders table without any repeats
Ans)
3) Retrieve salesman id of all salesmen from orders table with customer id 3002.
Ans)
14) Find the highest purchase amount ordered by the each customer with their ID and
highest purchase amount.
Ans)
16) Find the highest purchase amount on a date '2012-08-17' for each salesman with
their ID.
Ans)