ORACLE

-- 셀프조인


-- A || B  : A와 B를 연결

 

select a.first_name || '의 매니저는 ' || b.first_name || '이다' from EMPLOYEES a, EMPLOYEES b

 

where a.manager_id =b.employee_id;

 

 

출력 결과 = >


1. William의 매니저는 Gerald이다
2. Lisa의 매니저는 Gerald이다
3. Sundita의 매니저는 Gerald이다
4. Tayler의 매니저는 Gerald이다
5. Harrison의 매니저는 Gerald이다
6. Elizabeth의 매니저는 Gerald이다
8. Alexander의 매니저는 Lex이다
Clara의 매니저는 Alberto이다
Mattea의 매니저는 Alberto이다
David의 매니저는 Alberto이다
Danielle의 매니저는 Alberto이다
Amit의 매니저는 Alberto이다
Sundar의 매니저는 Alberto이다
Nandita의 매니저는 Adam이다
TJ의 매니저는 Adam이다
James의 매니저는 Adam이다
Julia의 매니저는 Adam이다
Anthony의 매니저는 Adam이다
Alexis의 매니저는 Adam이다
Laura의 매니저는 Adam이다
Mozhe의 매니저는 Adam이다
Jose Manuel의 매니저는 Nancy이다
Ismael의 매니저는 Nancy이다
Luis의 매니저는 Nancy이다
Daniel의 매니저는 Nancy이다
John의 매니저는 Nancy이다
Pat의 매니저는 Michael이다
William의 매니저는 Shelley이다
Valli의 매니저는 Alexander이다
Diana의 매니저는 Alexander이다
Bruce의 매니저는 Alexander이다

 

...

 

 

 

 

about author

PHRASE

Level 60  머나먼나라

노루가 제 방귀에 놀란다 , 겁이 많은 사람이 공연한 일에도 곧잘 놀람을 농조로 이르는 말.

댓글 ( 4)

댓글 남기기

작성

ORACLE 목록    more