sql min函数_SQL min()和max()函数

sql min函数

Hello there! In this tutorial, we are going to discuss the use and working of the SQL min() and max() functions.

你好! 在本教程中,我们将讨论SQL min()和max()函数的使用和工作。

So let us get right into the topic.

因此,让我们直接进入主题。

SQL MIN()函数 (SQL MIN() Function)

The SQL min() function is used to find the minimum/lowest value in the given column. The syntax for using the function is given below.

SQL min()函数用于在给定列中查找最小值/最小值 。 下面给出了使用该函数的语法。


SELECT MIN(column) 
FROM Table
WHERE condition;

Where, column and Table are the column name and table name respectively for which we need to find the minimum value. The WHERE condition is used to narrow down the set of values on the basis of the condition.

其中, columnTable分别是我们需要查找最小值的列名和表名。 的WHERE条件用于缩小的设定值的基础上condition

Let us look at an example to get a better understanding.

让我们看一个例子,以更好地理解。

Example: The table below contains the score of 3 different students in 3 different subjects(Maths, Science, and English) out of 100.

示例 :下表包含3个不同学科在3个不同学科(

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值