Microsoft SQL Database Server Functions

所在平台: Udemy

课程主页: https://www.udemy.com/course/microsoft-sql-database-server-functions/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**微软 SQL 数据库服务器函数课程总结** 本课程将深入探讨微软 SQL 数据库服务器的各种关键函数功能。 **核心内容涵盖:** * **聚合函数(Aggregate Functions):** * 执行对一组值的计算,并返回单个汇总值。 * 可用于 SELECT 列表或 HAVING 子句。 * 可与 GROUP BY 子句结合,对分组后的数据进行聚合计算。 * 可以使用 OVER 子句在指定范围内计算聚合值。 * 所有聚合函数都是确定性的,即相同的输入将永远产生相同的结果。 * **排名函数(Ranking Functions):** * 为分区中的每一行返回一个排名值。 * 某些排名函数可能导致多行获得相同的排名。 * 排名函数是非确定性的。 * **CAST 函数:** * 将表达式从一种数据类型转换为另一种数据类型。 * 转换失败时会返回错误,成功则返回转换后的值。 * **CONVERT 函数:** * 与 CAST 函数类似,用于将表达式从一种数据类型转换为另一种数据类型。 * 转换失败时会返回错误,成功则返回转换后的值。 * **SUBSTRING() 函数:** * 从输入字符串的指定位置开始,提取指定长度的子字符串。 本课程旨在让学习者掌握这些常用和重要的 SQL 函数,以提高数据处理和分析的效率。

课程评论(0条)

课程详情

There are various types of functions that can be performed on a Microsoft SQL Database Server. This course will cover a few of them.Aggregate functionsAggregate functions perform a calculation on a set of values and return a single value. They are allowed in the select list or the HAVING clause of a SELECT statement. You can use an aggregation in combination with the GROUP BY clause to calculate the aggregation on categories of rows. Use the OVER clause to calculate the aggregation on a specific range of value. The OVER clause cannot follow the GROUPING or GROUPING_ID aggregations.All aggregate functions are deterministic, which means they always return the same value when they run on the same input values.Ranking functionsRanking functions return a ranking value for each row in a partition. Depending on the function that is used, some rows might receive the same value as other rows. Ranking functions are nondeterministic.CAST function converts an expression from one datatype to another datatype. If the conversion fails, the function will return an error. Otherwise, it will return the converted value.CONVERT function converts an expression from one datatype to another datatype. If the conversion fails, the function will return an error. Otherwise, it will return the converted valueThe SUBSTRING() extracts a substring with a specified length starting from a location in an input string.

课程标签

0人关注该课程

主题相关的课程