"20201029"의 두 판 사이의 차이
(→확장된 join~=) |
|||
| 13번째 줄: | 13번째 줄: | ||
where title in ('강사', '전임강사', '조교수', '부교수', '초빙교수', '교수') | where title in ('강사', '전임강사', '조교수', '부교수', '초빙교수', '교수') | ||
and state_name in ('일본', '중국') | and state_name in ('일본', '중국') | ||
| + | |||
| + | /*8.독일에서 한국학 프로그램이 개설된 대학을 프로그램 개설 연도 순으로 나열*/ | ||
| + | |||
| + | select establishment, institute_name, state_name,program_name from institute | ||
| + | join program on institute.institute_id=program.institute_id where state_name='독일' | ||
| + | order by establishment desc '''/*asc 오래된순서로, desc 최신순서로 */''' | ||
2020년 10월 29일 (목) 09:57 판
확장된 join~=
--2b. 일본 또는 중국의 한국학 연구자 중 -- 강사, 전임강사, 조교수, 부교수, 초빙교수, 교수 신분의 사람이 참여하는 -- 프로그램과 대학 -- 그리고, 그 사람의 전화번화와
*테이블의 혼돈이 있을 경우 institute.institute_id 등의 테이블의 이름을 밝혀줘야함.
select institute_name, program_name, title, affiliation.person_name, person.phone, person.email from affiliation
join program on affiliation.program_id=program.program_id
join institute on program.institute_id=institute.institute_id
join person on affiliation.person_name=person.person_name
where title in ('강사', '전임강사', '조교수', '부교수', '초빙교수', '교수')
and state_name in ('일본', '중국')
/*8.독일에서 한국학 프로그램이 개설된 대학을 프로그램 개설 연도 순으로 나열*/
select establishment, institute_name, state_name,program_name from institute join program on institute.institute_id=program.institute_id where state_name='독일' order by establishment desc /*asc 오래된순서로, desc 최신순서로 */