61. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Display the list of customers who appointed a salesman for their jobs who does not live in the same city where their customer lives, and gets a commission is above 12%.
|
||||||||
Answer:
Option (b) |
62. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Display the details of order i.e. order number, order date, amount of order, which customer gives the order and which salesman works for that customer and how much commission he gets for an order.
|
||||||||
Answer:
Option (c) |
63. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Write a SQL statement to make a list in ascending order for the customer who works either through a salesman or by own.
|
||||||||
Answer:
Option (b) |
64. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Display Write a SQL statement to make a report with customer name, city, order number, order date, and order amount in ascending order according to the order date to find that either any of the existing customers have placed no order or placed one or more orders.
|
||||||||
Answer:
Option (b) |
65. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Display a list in ascending order for the salesmen who works either for one or more customer or not yet join under any of the customers.
|
||||||||
Answer:
Option (c) |
66. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Display a list for the salesmen who works either for one or more customer or not yet join under any of the customers who placed either one or more orders or no order to their supplier.
|
||||||||
Answer:
Option (d) |
67. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Write a SQL statement to make a Cartesian product between salesman and customer i.e. each salesman will appear for all customer and vice versa for that customer who belongs to a city.
|
||||||||
Answer:
Option (b) |
68. |
Employee(Eid, EName, Salary, Deptid) Deparment(Did, DName, City) Company(Cmpid, CmpName) Customers(Cid, FName, LName, City, Sid) Salesman(Sid, SName, City, Commission) Products(Pid, PName, Price, Cmpid) Orders(Oid, Pid, Cid, Sid, Amount, ODate, Quantity) Write a SQL query to display the names of the company whose products have an average price larger than or equal to Rs. 350.
|
||||||||
Answer:
Option (d) |