SQL查询初学者指南读书笔记(二)创建SQL查询
来源:互联网 发布:知乎 电影台词 编辑:程序博客网 时间:2024/05/21 22:21
PARTII: SQL Basics
CHAPTER 4Creating a Simple Query
介绍一种如何创建SQL语句的技术--“Request/Translation/CleanUp/SQL”
The SELECT operation in SQL can be broken down into three smaller operations,
which we will refer to as the SELECT statement,the SELECT expression,
and the SELECT query.
一层包含一层,相互嵌套使用,可以构成非常复杂的SELECT.
SELECT Statement的其它关键词都比较熟悉,这儿稍微解释GROUP BY和HAVING
GROUP BY—When you use aggregate functions in the SELECT clause
to produce summary information, you use the GROUP BY clause to
divide the information into distinct groups.Your database system uses
any column or list of columns following the GROUP BY keywords as
grouping columns.The GROUP BY clause is optional, and we’ll examine
it further in Chapter 13, Grouping Data.
HAVING—The HAVING clause filters the result of aggregate functions
in grouped information. It is similar to the WHERE clause in that the
HAVING keyword is followed by an expression that evaluates to true,
false, or unknown.You can test the expression by using standard comparison
operators, Boolean operators, or special operators. HAVING is
also an optional clause, and we’ll take a closer look at it in Chapter 14,
Filtering Grouped Data.
- SQL查询初学者指南读书笔记(二)创建SQL查询
- SQL查询初学者指南读书笔记(三)值表达式
- SQL查询初学者指南读书笔记(四)where从句
- SQL查询初学者指南读书笔记(五)集合操作与多表查询介绍
- SQL查询初学者指南读书笔记(一)关系数据库和SQL介绍
- SQL读书笔记(二)--数据查询
- Hibernate读书笔记-----SQL查询
- SQL数据查询(二)
- Hibernate读书笔记-----SQL查询GOOD
- SQL查询语句优化指南
- T-SQL查询语句(二):嵌套查询
- T-SQL查询语句(二):嵌套查询
- SQL 语句(二)--------------数据查询(简单查询)
- SQL 嵌套查询 创建约束
- oracle使用二(sql查询)
- SQL查询(二)提升
- SQL 基础查询语言(二)
- SQL查询语句(二)
- sizeof 求类的大小
- 作为开发人员,你必须要知道的在线工具
- 专家检索
- 常用正则表达式
- 我们从工程项目中学习什么?
- SQL查询初学者指南读书笔记(二)创建SQL查询
- 18.计算单词数
- JTAG与SWD对比
- 【转】【Taven.李锡远】敏捷开发之Scrum扫盲篇
- MySQL性能优化的21个最佳实践 和 mysql使用索引
- git rebase和git merge
- 3Sum Closest
- 16-阿里云云服务器ECS的使用教程之购买
- [前端] base64转码