пример запроса (2 задание) (помним про hr.)
select * from hr.employees where DEPARTMENT_ID = 100
Aceptance criteria (критерии приемки):
Для написания используем гугл доки (или аналог) мне скидываем ссылку на файл с возможностью редактировать
Документ должен называться Фамилия_№ ДЗ
Примеры с урока (case я починила, проблема была в лишних кавычках после end as) :
/select from HR.COUNTRIES
where REGION_ID != 2 */
select * from HR.EMPLOYEES
where DEPARTMENT_ID = 100
select EMPLOYEE_ID, FIRST_NAME,SALARY, DEPARTMENT_ID,
case
when DEPARTMENT_ID =10 then 'cats'
when DEPARTMENT_ID =30 then 'dogs'
when DEPARTMENT_ID =50 then 'bugs'
else 'smth'
end as animals
from HR.EMPLOYEES
where DEPARTMENT_ID in (10, 30, 50)
select distinct emp.SALARY
from HR.EMPLOYEES emp
where emp.JOB_ID like 'IT%'
select distinct emp.SALARY
from HR.EMPLOYEES emp
join hr.DEPARTMENTS dep on dep.DEPARTMENT_ID = emp.DEPARTMENT_ID
where dep.DEPARTMENT_name = 'IT'
Вам необходимо сделать запросы тут: https://livesql.oracle.com/ Запросы оформляем в документ, чтобы я могла их все выполнить у себя :) Файл с заданием на диске https://disk.yandex.by/d/9YapkjUaCW4VFg :)
пример запроса (2 задание) (помним про hr.) select * from hr.employees where DEPARTMENT_ID = 100
Aceptance criteria (критерии приемки): Для написания используем гугл доки (или аналог) мне скидываем ссылку на файл с возможностью редактировать Документ должен называться Фамилия_№ ДЗ
https://user-images.githubusercontent.com/57717954/176049966-dfbfda23-91a6-4a33-a42d-aa44b37b9305.png
Примеры с урока (case я починила, проблема была в лишних кавычках после end as) : /select from HR.COUNTRIES where REGION_ID != 2 */
select * from HR.EMPLOYEES where DEPARTMENT_ID = 100
select EMPLOYEE_ID, FIRST_NAME,SALARY, DEPARTMENT_ID, case
when DEPARTMENT_ID =10 then 'cats' when DEPARTMENT_ID =30 then 'dogs' when DEPARTMENT_ID =50 then 'bugs' else 'smth' end as animals from HR.EMPLOYEES where DEPARTMENT_ID in (10, 30, 50)
select distinct emp.SALARY from HR.EMPLOYEES emp where emp.JOB_ID like 'IT%'
select distinct emp.SALARY from HR.EMPLOYEES emp join hr.DEPARTMENTS dep on dep.DEPARTMENT_ID = emp.DEPARTMENT_ID where dep.DEPARTMENT_name = 'IT'