当前位置:网站首页>[required reading for high-quality products] sub query of Oracle database in Linux system
[required reading for high-quality products] sub query of Oracle database in Linux system
2022-06-27 20:00:00 【Friends of the wind】
The goal is :
Use subquery , It can be used SQL Statement to solve complex problems .
Concept
Subqueries are embedded in other SQL In the sentence select In the sentence , Also called nested query .
classification :
- Single line sub query : A subquery that returns only one record .
The operator | meaning |
---|---|
= | equal to |
> | greater than |
>= | greater than or equal to |
< | less than |
<= | less than or equal to |
<> | not equal to |
Inquire about 2012 year 1 Records of monthly water consumption greater than the average
analysis :
First step , Find out 2012 year 1 Average monthly water consumption ( Think of this as a whole , Distinguish by parentheses );
The second step , combined , Find out 2012 year 1 The monthly water consumption is greater than the value in the first step
1) Inquire about 2012 year 1 Format of monthly water consumption greater than a certain value
边栏推荐
猜你喜欢
散列表(Hash)-复习
Embracing cloud Nativity: Practice of Jiangsu Mobile order center
海底电缆探测技术总结
【bug】联想小新出现问题,你的PIN不可用。
[debug] platform engineering interface debugging
GIS遥感R语言学习看这里
Data intelligence enters the "deep water area", and data governance is the key
Error reported by Huada MCU Keil_ Weak's solution
带你认识图数据库性能和场景测试利器LDBC SNB
SQL Server - Window Function - 解决连续N条记录过滤问题
随机推荐
UE4实现长按功能
运算符的基础知识
数据库锁问题
MySQL beginner benefits
数组练习 后续补充
判断一个变量是数组还是对象?
Connection integration development theme month | drivers of enterprise master data governance
GIS remote sensing R language learning see here
Rust 中的枚举和控制流运算
多伦多大学博士论文 | 深度学习中的训练效率和鲁棒性
数据库优化
SQL Server - window function - solve the problem of filtering consecutive n records
Error reported by Huada MCU Keil_ Weak's solution
(LC)46. Full Permutation
【debug】平台工程接口调试
1029 Median
MySQL初学者福利
As a software engineer, give advice to young people (Part 2)
UE4-Actor基础知识
SQL Server - Window Function - 解决连续N条记录过滤问题