
数据库
新兰柯哀
技术宅,单身狗。
展开
-
SQLZOO练习记录-NULL
目录Using NULLTeachers and DepartmentsUsing NULLTeachers and Departments1.List the teachers who have NULL for their department.SELECT nameFROM teacherWHERE dept IS NULL2.Note the INNER JOIN misses the teachers with no department and the depa原创 2020-09-19 17:34:31 · 193 阅读 · 0 评论 -
SQLZOO练习记录-JOIN
The JOIN operationJOIN and UEFA EURO 20121.Modify it to show thematchidandplayername for all goals scored by Germany.SELECT matchid, playerFROM goal WHERE teamid='GER'2.Show id, stadium, team1, team2 for just game 1012SELECT id, stadium,...原创 2020-09-16 23:17:40 · 393 阅读 · 0 评论 -
SQLZOO练习记录-SUM and COUNT
The nobel table can be used to practice more SUM and COUNT functions.1.Show the total number of prizes awarded.SELECT COUNT(winner) FROM nobel2.List each subject - just onceSELECT DISTINCT subject FROM nobel3.Show the total number of prizes a原创 2020-09-16 20:30:04 · 398 阅读 · 1 评论