Select last_name, LPAD(salary,15,'$') from employees select last_date, to_char(hire_date,'fmday'). From employees select job_id, decode(job_id), 'AD_PRES', 'A' when 'ST_MAN' then 'B'.
Select last_name, LPAD(salary,15,'$') from employees select last_date, to_char(hire_date,'fmday'). From employees select job_id, decode(job_id), 'AD_PRES', 'A' when 'ST_MAN' then 'B'.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
Select last_name, LPAD(salary,15,'$') from employees select last_date, to_char(hire_date,'fmday'). From employees select job_id, decode(job_id), 'AD_PRES', 'A' when 'ST_MAN' then 'B'.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
select employee_id, last_name, salary , round(salary + (salary * 0.155)) from em
ployees; select employee_id, last_name, salary , round(salary + (salary * 0.155)) salary, (round(salary + (salary * 0.155))-salary) incremento from employees select INITCAP(employees.last_name), length(employees.last_name) from employees where SUBSTR(last_name, 1, 1) = 'A' or SUBSTR(last_name, 1, 1) = 'M' or SUBSTR( last_name, 1, 1) = 'J' order by last_name asc; SET VERIFY ON define Letra; select INITCAP(employees.last_name), length(employees.last_name) from employees where SUBSTR(last_name, 1, 1) = '&Letra'; undefine Letra; SELECT last_name, round((SYSDATE-hire_date)/30) AS meses FROM employees order by round((SYSDATE-hire_date)/30) asc select last_name || ' earns ' || salary ||' montlhy but wants ' || (salary * 3) from employees select last_name, LPAD(salary,15,'$') from employees select last_name, hire_date, to_char(next_day((ADD_MONTHS(hire_date,6)), 'lunes' ), 'fmday "," fmDdspth "of" fmMonth "of" fmYYYY') from employees select last_name, hire_date, to_char(hire_date,'fmday' ) from employees order b y (case to_char(hire_date,'fmd') when '1' then '8' else to_char(hire_date,'fmd' ) end) asc select last_name, decode( coalesce(commission_pct, -1), -1, 'sin comision', comm ission_pct ) comm from employees select RPAD(last_name, LENGTH(last_name) + round(salary/1000),'*') EMPLOYEES_A ND_THEIR_SALARIES from employees job_id, decode(job_id, 'AD_PRES', 'A','ST_MAN', 'B','IT_PROG','C','SA_REP','D',' ST_CLERK','E',0) GRA from employees select job_id, (case job_id when 'AD_PRES' then 'A' when 'ST_MAN' then 'B' whe n 'IT_PROG' then 'C' when 'SA_REP' then 'D' when 'ST_CLERK' then 'E' else '0' en d) GRA from employees