This file contains hidden or 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
| -- SOCCER_SQL_011 | |
| -- 팀과 스타디움을 조인하여 | |
| -- 팀이름, 스타디움 이름 출력 | |
| -- 스타디움을 왼쪽에 두고 홈팀이 없으면 해당 팀명에 홈팀이 없음 이라고 출력 | |
| select | |
| st.stadium_name 스타디움, | |
| coalesce(t.team_name,'홈팀이 없음') 팀명 | |
| from stadium st | |
| left join team t on t.team_id=st.hometeam_id |