当前位置:网站首页>Data query language (DQL)
Data query language (DQL)
2022-07-01 18:17:00 【Born like summer flowers LXM】
DQL Three ways to query

1. Basic query
(1) Query all










(2) Query some fields

(3) Column alias

(4) Restrict queries




(5) Go to check again


(6)where Clause

(7) Relational operator ( Greater than or equal to )


(8) Logical operators ( And or not )


(9) Continuous interval query (between…and…)


(10)in and not in


(11)is null



(12) Fuzzy query


(13) Merge query








(14) Sort


(15) Aggregate functions ( Count 、 Sum up 、 Average 、 Maximum 、 Minimum )



Count



Sum up

Average

minimum value

Maximum

(16) Group query





having Clause


2. Relational query



(1) Internal connection



inner join Is a column connection
union Is row connection 
Equivalent connection







Non equivalent connection








(2) External connection

External connection : Left connection














External connection : The right connection






(3) Full connection








(4) Cross connect








Another way is to find 16 Two ways of combination 


Another way 
3. nested subqueries

The order of inquiry 

(1) Scalar subquery



(2) Column query



(3) Line sub query




(4) Table sub query





4. Subquery exercise
Case study 1



Case study 2





Case study 3





Case study 4




5. practice
























边栏推荐
- Terms related to K line
- Is it reasonable and safe to open a securities account for 10000 shares free of charge? How to say
- SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event
- DNS
- About selenium element positioning being overwritten
- Detailed explanation of ArrayList expansion
- 股票万1免5证券开户是合理安全的吗,怎么讲
- Intel's open source deep learning tool library openvino will increase cooperation with local software and hardware parties and continue to open
- Leetcode 1380. Lucky numbers in the matrix (save the minimum number of each row and the maximum number of each column)
- 手机开户股票开户安全吗?那么开户需要带些什么?
猜你喜欢

Intelligent operation and maintenance practice: banking business process and single transaction tracking

Set the style of QT property sheet control

June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries

Euler function: find the number of numbers less than or equal to N and coprime with n

Work and leisure suggestions of old programmers

Mujoco's biped robot Darwin model

New patent applications and transfers

Growing up in the competition -- (Guangyou's most handsome cub) Pikachu walking

Leetcode 1380. Lucky numbers in the matrix (save the minimum number of each row and the maximum number of each column)

Fix the black screen caused by iPhone system failure
随机推荐
Draw drawing process of UI drawing process
網上股票開戶安全嗎?是否可靠?
[PHP foundation] realize the connection between PHP and SQL database
Sword finger offer II 105 Maximum area of the island
Slider verification code identification gadget display
Set the style of QT property sheet control
Kia recalls some K3 new energy with potential safety hazards
How to retrieve the password for opening Excel files
Batch export all pictures in PPT in one second
网上股票开户安全吗?是否可靠?
Redis master-slave realizes 10 second check and recovery
开发那些事儿:EasyCVR平台添加播放地址鉴权
ISO 27001 Information Security Management System Certification
MES production equipment manufacturing execution system software
What are the six steps of the software development process? How to draw software development flow chart?
Is it safe to open a stock account by mobile phone? What do you need to bring with you to open an account?
Bug of QQ browser article comment: the commentator is wrong
ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing
Apk signature process introduction [easy to understand]
Redis主从实现10秒检查与恢复