自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 SQLZOO练习-- SELECT basics(含题目翻译)

最近在练习sqlzoo上的习题,参考了网上一些资料,发现小部分习题已经有了更新,所以在此把自己的练习内容记录下来。 刚开始的题目特别简单,但是到了后面就逐渐加大了,不过在做题过程中,都会穿插有相应的知识点讲解,这点非常nice。 练习网址:https://sqlzoo.net/wiki/SQL_Tutorial 参考博客:https://blog.youkuaiyun.com/kangaroo835127729/category_2153583.html ...

2020-11-08 22:03:21 381

原创 2024-MySQL保姆级安装教程

直接下载安装,然后重新安装MySQL。后面的步骤不用怎么修改,就设置一个密码(这个密码后面连接的时候有用),其他都不用改,一直下一步就好了。添加完成后,就一直确定返回就行,至此,MySQL的安装已完成。我是直接选择第一个【server only】系统中找到【高级系统设置】,点击【环境变量】进行到下一步的时候出现了问题。选择适合自己的版本就好。

2024-09-11 16:32:05 1729 1

原创 SQLZOO练习-- Using Null(含题目翻译)

知识点 处理NULL值,NULL+join,coalesce函数,right join,left join,case语句 数据表 表的连接关系 teacher.dept = dept.id 题目内容 1.List the teachers who have NULL for their department.(查询部门为空的教师) select name from teacher where dept is null 2.Note the INNER JOI...

2020-12-05 22:41:08 751

原创 SQLZOO练习-- More JOIN operations(含题目翻译)

1.List the films where theyris 1962 [Showid,title] select id, title from movie where yr=1962 2.Give year of 'Citizen Kane'. select yr from movie where title = 'Citizen Kane' 3.List all of the Star Trek movies, include theid,titleandy...

2020-12-03 22:40:06 758

原创 SQLZOO练习-- Old JOIN Tutorial(含题目翻译)

知识点 join on连接的基础用法 PS:这是旧版的join练习,比新版简单很多,且最多只有两个表的连接 数据表1 表的连接关系 ttms.country = country.id 题目内容 1.Show the athelete(who)and the country name for medal winners in 2000.(查询时间为2000年的选手名字及所在国家) select who,name from ttms join country on t...

2020-11-23 22:49:29 364

原创 SQLZOO练习-- The JOIN operation(含题目翻译)

知识点 join on连接、join连接+group by+count、join连接+case 数据表 表的连接关系 game.id = goal.matchid goal.teamid=eteam.id 说明 game:比赛记录表:比赛id、比赛日期、比赛地点、队伍1、队伍2 goal:得分记录表:比赛id、队伍id、选手名称、比赛用时? eteam:队伍记录表:队伍id、队伍名称、教练名称 题目内容 1.Modify it to show thematchid...

2020-11-23 22:08:43 619

原创 SQLZOO练习-- SUM and COUNT(含题目翻译)

知识点 sum、count、distinct、order by、 having 数据表 world 题目内容 1.Show the totalpopulationof the world.(查询全世界的人口数) SELECT SUM(population) FROM world 2.List all the continents - just once each.(展示所有大洲,每个只显示一条数据) select distinct continen...

2020-11-16 22:44:39 357 1

原创 SQLZOO练习-- SELECT within SELECT Tutorial(含题目翻译)

知识点 子查询 数据表 world 题目内容 1.List each countrynamewhere thepopulationis larger than that of 'Russia'.(查找人口数大于'Russia'的国家) SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name='Russia') 2.S...

2020-11-16 00:05:09 1174 2

原创 SQLZOO练习-- SELECT from Nobel Tutorial(含题目翻译)

-- 3.1 Change the query shown so that it displays Nobel prizes for 1950. SELECT yr, subject, winner FROM nobel WHERE yr = 1950 -- 3.2 Show who won the 1962 prize for Literature. SELECT winner FROM nobel WHERE yr = 1962 AND subject = 'Litera...

2020-11-11 21:49:24 1251 2

原创 SQLZOO练习-- SELECT from World(含题目翻译)

知识点 数据表 world 题目内容 1.Read the notes about this table. Observe the result of running this SQL command to show the name, continent and population of all countries.(查询表中所有国家的名称、隶属洲、人口数量) select name, continent, population from world 2.How...

2020-11-11 20:54:29 1269

原创 SQLZOO练习-- SELECT names(含题目翻译)

知识点 like和%、concat、replace 数据表 world 题目内容 1.Find the country that start with Y() select name from world where name like 'y%' 2.Find the countries that end withy select name from world where name like '%y' 3.Find the countries th...

2020-11-11 20:53:30 587

空空如也

空空如也

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

TA关注的人

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