当前位置:网站首页>【精品必读】Linux系统Oracle数据库趣解子查询
【精品必读】Linux系统Oracle数据库趣解子查询
2022-06-27 18:06:00 【Friends of the wind】
目标:
使用子查询,可以用SQL语句解决复杂问题。
概念
子查询是指嵌入在其他SQL语句里的select语句中,也叫嵌套查询。
分类:
- 单行子查询:只返回一条记录的子查询语句。
| 操作符 | 含义 |
|---|---|
| = | equal to |
| > | greater than |
| >= | greater than or equal to |
| < | less than |
| <= | less than or equal to |
| <> | not equal to |
查询 2012 年 1 月用水量大于平均值的记录
分析:
第一步,查出2012年1月用水量平均值(将这个看成整体,用括号区分起来);
第二步,综合起来,查出2012年1月用水量大于第一步的值
1)查询2012年1月用水量大于某个值的格式
边栏推荐
- Mathematical derivation from perceptron to feedforward neural network
- MySQL初学者福利
- Data intelligence enters the "deep water area", and data governance is the key
- labelimg使用指南
- Redis cluster Series II
- Leetcode 1381. 设计一个支持增量操作的栈
- Memoirs of actual combat: breaking the border from webshell
- Web APls 阶段——第十四节——本地存储
- Rust 中的枚举和控制流运算
- Redis持久化
猜你喜欢

【debug】平台工程接口调试

数智化进入“深水区”,数据治理是关键

字典树(复习)

Doctoral Dissertation of the University of Toronto - training efficiency and robustness in deep learning

SQL Server - window function - solve the problem of filtering consecutive n records

429- binary tree (108. convert the ordered array into a binary search tree, 538. convert the binary search tree into an accumulation tree, 106. construct a binary tree from the middle order and post o

MySQL初学者福利

Solution of adding st-link to Huada MCU Keil

Bit.Store:熊市漫漫,稳定Staking产品或成主旋律

今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献
随机推荐
Enumeration and control flow operation in rust
数智化进入“深水区”,数据治理是关键
数据库锁问题
As a software engineer, give advice to young people (Part 2)
ABAP随笔-面试回忆 望大家 需求不增 人天飙升
Summary of submarine cable detection technology
MASS幸运哈希游戏系统开发丨冲突解决方法(代码分析)
Error reported by Huada MCU Keil_ Weak's solution
在线文本按行批量反转工具
Rust 所有权进阶 -- 内存管理
Bit. Store: long bear market, stable stacking products may become the main theme
【help】JVM的CPU资源占用过高问题的排查
shell脚本常用命令(四)
爬取国家法律法规数据库
Oracle 获取月初、月末时间,获取上一月月初、月末时间
Is it safe to buy stocks and open an account on the account opening link of the securities manager? Ask the great God for help
Manage rust project through cargo
键入网址到网页显示,期间发生了什么?
数据库引擎
mime.type文件内容