|
|

|
#14. Examine the data of the EMPLOYEES table. EMPLOYEES (EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID) Evaluate this SQL statement: SELECT e.employee_id "Emp_id", e.emp_name "Employee", e.salary, m.employee_id "Mgr_id", m.emp_name "Manager" FROM employees e, employees m WHERE e.mgr_id = m.employee_id AND e.salary > 4000;
What is its output?
Показать комментарии к этому вопросу (1)
Добавить комментарии
Ссылка на этот вопрос
|
|
#19. The EMPLOYEE_HISTORY table contains these columns: EMPLOYEE_ID NUMBER
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
DEPARTMENT_ID NUMBER
POSITION VARCHAR2(30)
SALARY NUMBER(6,2)
HIRE_DATE DATE
DEPART_DATE DATE The EMPLOYEE_HISTORY table contains only former employees. You need to create a report to display all former employees that were hired on or after January 1, 1996. The data should display in this format: Former Employee Term of Employment
14837 SMITH 10-MAY-92 / 01-JUN-01 Which SELECT statement could you use?
Показать комментарии к этому вопросу (1)
Добавить комментарии
Ссылка на этот вопрос
|
|
|
|
ген. 0.097
|
Дата сервера 09:18 09-01-2009
|
Разработал Zip © 2006
|
|
 |
|
|