zoukankan      html  css  js  c++  java
  • SQL查询刚開始学习的人指南读书笔记(二)创建SQL查询

    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 BYHAVING

    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.


  • 相关阅读:
    Flume
    nodejs中npm工具自身升级
    Nodejs v4.x.0API文档学习(1)简介
    nodejs设置NODE_ENV环境变量(1)
    nodejs使用express4框架默认app.js配置说明
    mongodb2.X添加权限
    javascript中new Date浏览器兼容性处理
    Android Studio中文组(中文社区)
    Javascript日期处理类库Moment.js
    android 按两次返回键退出应用
  • 原文地址:https://www.cnblogs.com/slgkaifa/p/6729752.html
Copyright © 2011-2022 走看看