Company Database Query
Company Database Query
Show the resulting salaries if every employee working on the ‘ProductX’ project is given a 10 percent
raise
2. Retrieve all employees in department 5 whose salary is between Rs. 30,000 and Rs. 40,000
3. Retrieve a list of employees and the projects they are working on, ordered by department and, within
1. Retrieve the name of each employee who has a dependent with the same first name and same sex as the
employee
2. Retrieve the social security numbers of all employees who work on project number 1, 2 or 3
1. Find the sum of the salaries of all employees, the maximum salary, the minimum salary, and the
average salary
2. Find the sum of the salaries of all employees of the ‘Research’ department, as well as the maximum
salary, the minimum salary, and the average salary in this department
3. For each department, retrieve the department number, the number of employees in the department, and
1. For each project, retrieve the project number, the project name, and the number of employees who work
on that project
2. For each project on which more than two employees work, retrieve the project number, the project
3. For each project, retrieve the project number, the project name, and the number of employees from
1. For each employee, retrieve the employee’s first and last name, and the first and last name of his or her
immediate supervisor.
1. Retrieve the names of all employees who have two or more dependents.
2. Make a list of project numbers for projects that involve an employee whose last name is ‘Smith’, either
3. For every project located in ‘Stafford’, list the project number, the controlling department number and
1. Retrieve all the attributes of an EMPLOYEE and the attributes of the DEPARTMENT he or she works
2. Retrieve the birthdate and address of the employee(s) whose name is ‘John B Smith’
3. Retrieve the name and address of all employees who work for the ‘Research’ department
1. get the manager’s name, we need to com bine each department tuple with the employee tuple whose