51. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Find all departments whose total salary is exceeding 100000.
|
||||||||
Answer:
Option (a) |
52. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Retrieve person name, salary & department name who belongs to Jamnagar.
|
||||||||
Answer:
Option (d) |
53. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Find all persons who does not belongs to any department.
|
||||||||
Answer:
Option (b) |
54. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Find department wise person counts.
|
||||||||
Answer:
Option (b) |
55. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Find average salary of person who belongs to Ahmedabad.
|
||||||||
Answer:
Option (b) |
56. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Produce Output Like: <PersonName> earns <Salary> from department <DepartmentName> (In Single Column)
|
||||||||
Answer:
Option (a) |
57. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) List all departments who have no persons.
|
||||||||
Answer:
Option (c) |
58. |
Write SQL statements (Query) for following tables: Department(DepartmentID (PK), DepartmentName, DepartmentCode, Location) Person(PeronID (PK), PersonName, DepartmentID (FK), Salary, JoiningDate, City) Find city & department wise total, average & maximum salaries.
|
||||||||
Answer:
Option (d) |
59. |
Write SQL statements (Query) for following tables: 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 salesman name, customer name and their cities for the salesmen and customer who belongs to the same city.
|
||||||||
Answer:
Option (c) |
60. |
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 know which salesman are working for which customer.
|
||||||||
Answer:
Option (a) |