|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#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?
Show comments for this question (1)
Add comments
Link to this question
|
|
#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?
Show comments for this question (1)
Add comments
Link to this question
|
|
#20. The EMPloyee table contains these columns: Empno Number(4)
Ename Varchar2(10)
job varchar2(10)
sal Varchar2(10) You need to display the employees information by using this query. How many columns are presented after executing this query: SELECT Empno||','||Ename||','||Job "Employee Information" FROM employee;
Show comments for this question (1)
Add comments
Link to this question
|
|
|
|
gen. 0.141
|
Server date 10:47 22-11-2008
|
Developed by Zip © 2006
|
|
 |
|
|