当前位置:网站首页>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
























边栏推荐
- Is Huishang futures a regular futures platform? Is it safe to open an account in Huishang futures?
- JS how to convert a string with a delimiter into an n-dimensional array
- Convert the robot's URDF file to mujoco model
- [beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
- Definition of rotation axis in mujoco
- The difference and relationship between iteratible objects, iterators and generators
- Three dimensional anti-terrorism Simulation Drill deduction training system software
- Apache iceberg source code analysis: schema evolution
- Batch export all pictures in PPT in one second
- L'ouverture d'un compte d'actions en ligne est - elle sécurisée? Fiable?
猜你喜欢

Debiasing word embeddings | talking about word embedding and deviation removal # yyds dry goods inventory #

Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash

Samba basic usage

This is the latest opportunity of the London bank trend

. Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes

Common design parameters of solid rocket motor

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

Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target

Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse

Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
随机推荐
How to retrieve the password for opening Excel files
Work and leisure suggestions of old programmers
Mujoco model learning record
Convert the robot's URDF file to mujoco model
The difference and relationship between iteratible objects, iterators and generators
DRF --- response rewrite
Debiasing word embeddings | talking about word embedding and deviation removal # yyds dry goods inventory #
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON
Small exercise -- subnet division and summary
SCP -i private key usage
Draw drawing process of UI drawing process
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
JS how to convert a string with a delimiter into an n-dimensional array
Nielseniq found that 60% of the re launched products had poor returns
Subnet division and summary
The latest intelligent factory MES management system software solution
Explain in detail the process of realizing Chinese text classification by CNN
The new server is packaged with the source code of H5 mall with an operation level value of several thousand
Happy new year | 202112 monthly summary
Pytorch crossentropyloss learning