Created
May 20, 2018 18:20
-
-
Save tkusano/a450af2ce0c9f9908db467a4c1205702 to your computer and use it in GitHub Desktop.
ちゃーむずが共演したイベントの一覧
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH q AS ( | |
SELECT count(e.event_id),e.event_id,e.name,e.start_time | |
FROM event e,actor a,performer p | |
WHERE ( a.name='永野愛理' OR a.name='山下七海' ) | |
AND e.event_id=p.event_id | |
AND p.person_id=a.actor_id | |
GROUP BY e.event_id ) | |
SELECT * FROM q WHERE count=2 ORDER BY q.start_time; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment