Philadelphia University Faculty Of Administrative & Financial Sciences

advertisement
Philadelphia University
Faculty Of Administrative & Financial Sciences
Business Networking and Systems Management Department
Database
Home Work Number (1)
1) Display employee names, job, salary of all employees work as salesman or
president and their salary is more than 1500 $ .
2-Display the employee names which there names contain two A.
3-Query the table emp by using an SQL comparison operator to display the
names of employees those there hiredate is in the range from 10/02/1981 to
17/11/1981, they work as manager or salesman and there salary between 1300
to 2500.
4-display the employee name new salary ( new salary = sal +0.1 from the
salary ) annual salary and the new annual salary for all employees in emp
table.
5-Query the emp and salgrade tables, to display ename, salary, and grade for
all employees there hiredate between 10/10/1980 and 30/10/1982 . using emp
table and salgrade table.
6-Query the emp table, to display all employees name job along with there
managers name for all employees who earn more than 1500.
7-Query the emp and dept tables using simple join to display the names of
employees, department name and location .
8-Query the emp and salgrade tables, to display ename, salary, and grade for
all employees along with there managers names, salary, and grades.
9-Query the emp and dept tables to display the names of employees, and
there department name for the employees and there managers and location of
the manager department .
10-display the minimum, maximum, sum, and average salary
for each job type in emp table, label the columns MAXIMUM,
MINIMUM, SUM, and AVERAGE respectively.
11- display the highest average salaries in all departments.
)1(
Download