自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 sqlzoo--Self JION

1.How many stops are in the database. SELECT COUNT(*) FROM stops 2.Find the id value for the stop ‘Craiglockhart’ SELECT id FROM stops WHERE name = ‘Craiglockhart’ 3.Give the id and the name f...

2018-07-31 14:45:31 290

原创 sqlzoo--Using Null

这里涉及两个表: teacher(id,dept,name,phone,mobile); dept(id,name); 1.List the teachers who have NULL for their department. SELECT name FROM teacher WHERE dept IS NULL 2.Note the INNER JOIN misses the...

2018-07-30 23:38:52 181

原创 sqlzoo练习--MORE JION

The JOIN operation1.List the films where the yr is 1962 [Show id, title] 2.Give year of ‘Citizen Kane’. 3.List all of the Star Trek movies, include the id, title and yr (all of these movies includ...

2018-07-30 16:04:33 283

原创 sqlzoo练习--JION

1.Modify it to show the matchid and player name for all goals scored by Germany. To identify German players, check for: teamid = ‘GER’ SELECT matchid,player FROM goal WHERE teamid = ‘GER’ 2.Show ...

2018-07-29 19:00:46 297

原创 sqlzool练习--SELECT and COUNT

1.Show the total population of the world. SELECT SUM(population) FROM world 2.List all the continents - just once each. SELECT continent FROM world GROUP BY continent 3.Give the total GDP...

2018-07-28 23:04:36 1250

原创 sqlzoo练习--SELECT in SELECT

SELECT in SELECT1.List each country name where the population is larger than that of ‘Russia’. SELECT name FROM world WHERE population >(SELECT population ...

2018-07-28 17:20:23 2802

原创 sqlzoo的练习----SELECT from Nobel

SELECT from Nobel1.Change the query shown so that it displays Nobel prizes for 1950. SELECT yr, subject, winner FROM nobel WHERE yr = 1950 2.Show who won the 1962 prize for Literature. SELECT...

2018-07-28 15:03:36 937 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除