|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/sql-functions/
课程评论:没有评论
**课程名称:**SQL 函数入门指南 **课程概述:** 本课程将深入介绍 Oracle 数据库中内置的 SQL 函数,帮助您在各种 SQL 语句中有效地运用它们。SQL 函数是执行数据计算和处理数据库中其他数据方面的强大工具。掌握 SQL 函数将显著提升您的数据库专业技能,让工作更加高效。 **课程将重点学习的 SQL 函数类型包括:** * **聚合函数 (Aggregate Functions):** * 这些函数基于一组行返回单个结果,而非基于单个行。 * 聚合函数常用于 `SELECT` 语句的 `SELECT` 列表、`ORDER BY` 子句和 `HAVING` 子句。 * 它们通常与 `GROUP BY` 子句结合使用,将查询的表或视图中的行划分为不同的组。 * 在包含 `GROUP BY` 的查询中,`SELECT` 列表中的元素可以是聚合函数、`GROUP BY` 表达式、常量或涉及这些元素的表达式。Oracle 对每个行组应用聚合函数,为每个组返回一个单一结果行。 * **单行函数 (Single Row Functions):** * 这些函数为查询的表或视图的每一行都返回一个单一结果。 * 单行函数可以在 `SELECT` 列表、`WHERE` 子句、`START WITH` 子句、`CONNECT BY` 子句和 `HAVING` 子句中使用。 * **数值函数 (Numeric Functions):** * 接受数值输入并返回数值结果。 * 大多数返回 `NUMBER` 值的数值函数,其精度可达 38 位小数。 * **转换函数 (Conversion Functions):** * 用于将一个数据类型的值转换为另一种数据类型。 * **分析函数 (Analytic Functions):** * 常用于计算累计、移动、中心化和报告聚合值。 * 分析函数基于一组行计算聚合值,但与聚合函数不同的是,它们为每个组返回多个行。 **学习目标:** 通过本课程的学习,您将能够: * 理解 SQL 函数在数据库操作中的重要作用。 * 熟练运用 Oracle 数据库提供的各种内置 SQL 函数。 * 使用聚合函数对数据进行分组统计和汇总。 * 灵活运用单行函数处理单个数据记录。 * 掌握数值函数和转换函数进行数据计算和类型转换。 * 利用分析函数进行更复杂的报表明细和聚合分析。 * 提升数据处理能力,优化 SQL 查询的效率和可读性。
SQL has many built-in functions .In this course we will be learning about the SQL functions built in into Oracle Database that are available for use in various appropriate SQL statements. There are various types of SQL functions used to perform calculations on data and manipulate other aspects of data within the database. Understanding SQL functions will help improve your skills and make your work much easier as a database professional. In this course we will be learning about the following types of SQL functions: Aggregate FunctionsAggregate functions return a single result row based on groups of rows, rather than on single rows. Aggregate functions can appear in select lists and in ORDER BY and HAVING clauses. They are commonly used with the GROUP BY clause in a SELECT statement, where Oracle Database divides the rows of a queried table or view into groups. In a query containing a GROUP BY clause, the elements of the select list can be aggregate functions, GROUP BY expressions, constants, or expressions involving one of these. Oracle applies the aggregate functions to each group of rows and returns a single result row for each group. Single Row Functions:Single-row functions return a single result row for every row of a queried table or view. These functions can appear in select lists, WHERE clauses, START WITH and CONNECT BY clauses, and HAVING clauses. Numeric FunctionsNumeric functions accept numeric input and return numeric values. Most numeric functions that return NUMBER values that are accurate to 38 decimal digits conversion functions convert a value from one datatype to another. Analytic FunctionsAnalytic functions are commonly used to compute cumulative, moving, centered, and reporting aggregates.Analytic functions compute an aggregate value based on a group of rows. They differ from aggregate functions in that they return multiple rows for each group.