Coursera SQL for Data Science | Quiz答案, Week2

本文介绍了Coursera上UCD的SQL for Data Science课程的第2周内容,包括基本和高级过滤、排序、计算数据的SQL用法,以及Quiz和Coding题的答案。重点讲解了WHERE子句、ORDER BY、聚合函数和GROUP BY等概念。
摘要由CSDN通过智能技术生成

最近开始初步学习SQL,在Coursera上找到了UCD的SQL for Data Science,个人感觉挺细致的,适合入门学习。这节课的视频里概念题很多,所以在这里把关键概念知识点和做过的Quiz和Coding题分享出来,希望同行者一起进步~

Week 2: Filtering, Sorting, and Calculating Data with SQL

接 Week1:Coursera SQL for Data Science | Quiz答案, Week1_Spectre23c的博客-CSDN博客

接 Week3:Coursera SQL for Data Science | Quiz答案, Week3_Spectre23c的博客-CSDN博客

接 Week4: Coursera SQL for Data Science | Quiz答案, Week4_Spectre23c的博客-CSDN博客

目录

Keypoints

Module 2 Quiz

Module 2 Coding Questions


Keypoints

Basic Filtering with SQL

SELECT column_name, column_name

FROM table_name

WHERE column_name operator value;

=, <>, <, >, > =, < =, BETWEEN, IS NULL

Advanced Filtering with SQL

SELECT column_name, column_name

FROM table_name

WHERE column_name operator value;

IN Operator

WHERE column_name IN (x,y,z);

OR Operator

WHERE column_name = 'x' OR 'y';

AND Operator

WHERE (column_name = 'x' OR 'y' )AND z > 10;

NOT Operator

WHERE NOT column_name = 'x' AND NOT column_name = 'y' ;

Using Wildcards in SQL

Wildcards are only used with strings

Example:

%Pizza       Grabs

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值