自定义博客皮肤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 345

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

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

2024-09-11 16:32:05 1572 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 teacherwhere dept is null2.Note the INNER JOI...

2020-12-05 22:41:08 599

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

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

2020-12-03 22:40:06 651

原创 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,namefrom ttms join country on t...

2020-11-23 22:49:29 321

原创 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 522

原创 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 287 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 1092 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 nobelWHERE yr = 1950-- 3.2 Show who won the 1962 prize for Literature.SELECT winner FROM nobelWHERE yr = 1962 AND subject = 'Litera...

2020-11-11 21:49:24 1202 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 world2.How...

2020-11-11 20:54:29 1209

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

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

2020-11-11 20:53:30 529

空空如也

空空如也

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

TA关注的人

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