当前位置:网站首页>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
边栏推荐
- Penetration practice vulnhub range Keyring
- Data warehouse (3) star model and dimension modeling of data warehouse modeling
- On the language internationalization of Yongzhong Office
- Common design parameters of solid rocket motor
- Enter wechat applet
- Session layer of csframework, server and client (1)
- Sword finger offer II 105 Maximum area of the island
- JS how to convert a string with a delimiter into an n-dimensional array
- DRF --- response rewrite
- js如何将带有分割符的字符串转化成一个n维数组
猜你喜欢
Leetcode 1380. Lucky numbers in the matrix (save the minimum number of each row and the maximum number of each column)
The method of real-time tracking the current price of London Silver
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
Htt [ripro network disk link detection plug-in] currently supports four common network disks
Yolov5 practice: teach object detection by hand
Intel's open source deep learning tool library openvino will increase cooperation with local software and hardware parties and continue to open
How to write good code - Defensive Programming Guide
Intelligent operation and maintenance practice: banking business process and single transaction tracking
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
Nearly 60% of the employees strongly support Ctrip's "3+2" working mode, and work at home for two days a week
随机推荐
Length of learning and changing
MES production equipment manufacturing execution system software
Penetration practice vulnhub range Keyring
Set the style of QT property sheet control
ACL 2022 | decomposed meta learning small sample named entity recognition
DRF --- response rewrite
开发那些事儿:EasyCVR平台添加播放地址鉴权
Detailed explanation of ArrayList expansion
SCP -i private key usage
Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target
线上开通ETF基金账户安全吗?有哪些步骤?
Openlayers customize bubble boxes and navigate to bubble boxes
[C supplement] [string] display the schedule of a month by date
Redis主从实现10秒检查与恢复
Extract the compressed package file and retrieve the password
Smart factory digital management system software platform
Irradiance, Joule energy, exercise habits
(6) VIM editor MV cat redirection standard input and output more pipe symbols head tail
Review Net 20th anniversary development and 51aspx growth
Redis master-slave realizes 10 second check and recovery