- 博客(3)
- 收藏
- 关注
原创 SQLZOO答题笔记——Scottish Parliament/zh
4. 列出政黨名單,當中最少有一名黨員在議會內。 Select party.name from msp join party on msp.party=party.code Group by party.name having count(party.name)>=1 6. 列出議會中每一政黨的黨員人數。 select party.name, count(msp.name) from ...
2019-10-07 20:30:24
395
原创 SQLZOO答题笔记——Using Null
5.Use COALESCE to print the mobile number. Use the number ‘07986 444 2266’ if there is no number given. Show teacher name and mobile number or ‘07986 444 2266’ select name, ifnull(mobile,‘07986 444 2...
2019-10-06 20:31:17
106
原创 SQLZOO答题笔记——More JOIN operations/zh
8.顯示電影異型’Alien’ 的演員清單。 SELECT name from movie left join casting on movie.id=casting.movieid left join actor on actor.id=casting.actorid where movie.title='Alien' 9.列出演員夏里遜福 ‘Harrison Ford’ 曾演出的電影。 SE...
2019-10-05 21:54:45
326
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人