"매핑테이블 쿼리 예시"의 두 판 사이의 차이
seonae's wiki
2번째 줄: | 2번째 줄: | ||
==지봉유설 천문부에서 인용문 보기== | ==지봉유설 천문부에서 인용문 보기== | ||
+ | |||
+ | *Query | ||
+ | '''select''' aa.id, section, subsect, upid, source1, text1, url '''from''' jibongCitationA '''as''' aa | ||
+ | '''inner join''' jibongCitationB '''as''' bb '''on''' aa.id = bb.cid | ||
+ | '''where''' section = '1-천문부(天文部)' '''and''' url is not null | ||
+ | |||
+ | *Result | ||
==인용문과 재인용 텍스트 연결하기== | ==인용문과 재인용 텍스트 연결하기== | ||
+ | |||
+ | *Query | ||
+ | '''select''' bb.id, bb.cid, bb.text, bb.url, cc.cid, cc.upcid, cc.text, cc.url '''from''' jibongCitationB '''as''' bb | ||
+ | '''join''' jibongCitationC '''as''' cc '''on''' bb.cid=cc.upcid | ||
+ | |||
+ | *Result | ||
==왕세정이나 왕세정의 저술이 출처인 인용문 보기== | ==왕세정이나 왕세정의 저술이 출처인 인용문 보기== | ||
+ | |||
+ | *Query | ||
+ | '''select''' section, subsect, pn.label, bk.label, bb.text, bb.url '''from''' jibongPerson '''as''' pn | ||
+ | '''inner join''' jibongCitationB '''as''' bb '''on''' pn.id = bb.pid '''inner join''' jibongCitationA '''as''' aa '''on''' bb.cid = aa.id | ||
+ | '''full outer join''' jibongBooks '''as''' bk '''on''' bb.bid = bk.id '''where''' pn.name = '왕세정' | ||
+ | |||
+ | *Result | ||
==조선시대 인물을 인용한 텍스트 보기== | ==조선시대 인물을 인용한 텍스트 보기== | ||
+ | |||
+ | *Query | ||
+ | '''select''' pn.label, nationality, bb.cid, text '''from''' jibongPerson '''as''' pn | ||
+ | '''inner join''' jibongCitationB '''as''' bb '''on''' pn.id=bb.pid '''where''' pn.nationality ='朝鮮' | ||
+ | |||
+ | *Result |
2019년 12월 18일 (수) 21:07 판
지봉유설 천문부에서 인용문 보기
- Query
select aa.id, section, subsect, upid, source1, text1, url from jibongCitationA as aa inner join jibongCitationB as bb on aa.id = bb.cid where section = '1-천문부(天文部)' and url is not null
- Result
인용문과 재인용 텍스트 연결하기
- Query
select bb.id, bb.cid, bb.text, bb.url, cc.cid, cc.upcid, cc.text, cc.url from jibongCitationB as bb join jibongCitationC as cc on bb.cid=cc.upcid
- Result
왕세정이나 왕세정의 저술이 출처인 인용문 보기
- Query
select section, subsect, pn.label, bk.label, bb.text, bb.url from jibongPerson as pn inner join jibongCitationB as bb on pn.id = bb.pid inner join jibongCitationA as aa on bb.cid = aa.id full outer join jibongBooks as bk on bb.bid = bk.id where pn.name = '왕세정'
- Result
조선시대 인물을 인용한 텍스트 보기
- Query
select pn.label, nationality, bb.cid, text from jibongPerson as pn inner join jibongCitationB as bb on pn.id=bb.pid where pn.nationality ='朝鮮'
- Result