Summary of "Sql Advanced Tutorial"

1 Magic SQL

1.1 case expression

Insert image description here
The statements are as follows:
Insert image description here
Insert image description here
First method:
Insert image description here
Second method:
Insert image description here

1.2 Usage of self-connection

1.3 Three-valued logic and NULL

1.4 The power of the HAVING clause

1.5 Usage of outer joins

1.6

1.7

1.8

1.9

1.10

1.11

1.12

Guess you like

Origin blog.csdn.net/weixin_42258633/article/details/130609899