Beruflich Dokumente
Kultur Dokumente
region_name='Europe')
9.4. select department_name,street_address from departments join
locations using(location_id)
10.1. select department_id,department_name from departments
where
upper(substr(department_name,1,1))=upper(substr(department_na
me,-1))
10.2. select first_name,last_name from employees
where commission_pct in(select max(commission_pct) from
employees where commission_pct is not null)
10.3. select department_name,department_id from departments
where department_id not in(select department_id from employees
where department_id is not null)
10.4. select first_name,last_name,salary,department_name from
employees join departments using(department_id) where salary
between 10000 and 15000
11.1. select lower('Atestat')||' '||upper('Oracle')||' '||
lower(substr('Subiecte',1,7))||upper(substr('Subiecte',8,1))
from dual
11.2. select first_name,last_name,birthdate from f_staffs where
manager_id=19 and salary<50
and birthdate between to_date('30-01-1969','DD-MM-YYYY')
and to_date('31-12-1979','DD-MM-YYYY')
11.3. select salary,salary*1.03 as "salariu indexat" from f_staffs
where first_name='Bob'
12.1. select 'Astazi '||to_char(sysdate,'DD-MON-YY')||' plec la
munte!!!' from dual
12.2. select e.first_name||' '||e.last_name||' '||e.hire_date as
"Angajat",
m.first_name||' '||m.last_name||' '||m.hire_date as "Manager" from
employees e,employees m
where e.manager_id=m.employee_id and e.hire_date<m.hire_date
department_id=60)
17.2. - insert into employees
values(90,'Alin','Popescu','oracle',0744123456,to_date('30-012008','DD-MM-YYYY'),'AD_VP',12000,null,101,90)
- select * from employees
17.3. select
e.first_name,e.last_name,d.department_id,d.department_name
from employees e left outer join departments d on
(e.department_id=d.department_id)
18.1. select j.job_title,h.start_date,h.end_date from jobs
j,job_history h
where j.job_id=h.job_id and min_salary between 2000 and 10000
18.2. select count(job_id) from jobs
where (min_salary between 3000 and 20000) and (max_salary
between 3000 and 200000)
18.3. select department_id,max(end_date-start_date) from
job_history group by department_id
19.1. select artist,title from d_songs where artist like '%o%'
19.2. select title from d_songs where type_code in (12,77) order by
title
19.3. select artist,title,duration,description from d_songs,d_types
where type_code=code
20.1. select first_name,last_name,salary*1.25 from employees
where department_id in(50,90,110) and hire_date>to_date('07-061994','DD-MM-YYYY')
20.2. select first_name,salary*1.33 from employees where
department_id=50 and first_name like '%e%'
20.3. select first_name,last_name from employees where
salary=(select max(salary) from employees)
21.1. select 'Mai sunt aproximativ '||
trunc(months_between(to_date('25-12-2008','DD-MMYYYY'),sysdate))||' luni pana la Craciun' from dual