MindMap Gallery SQL learning summary
Detailed SQL basic knowledge points, detailed introduction, comprehensive description, I hope it will be helpful to interested friends!
Edited at 2023-12-08 18:22:06This mind map analyzes favorites and dark horses for the 2026 FIFA World Cup, hosted by the USA, Canada, and Mexico. With the expansion to 48 teams, the competitive landscape has shifted. The objective is to identify top contenders and surprise packages. Key performance indicators include prediction accuracy and user engagement. Favorites: A Clear Top Four Spain emerges as the consensus front-runner at +400 odds. They are reigning European champions, powered by Lamine Yamal and Ballon d‘Or winner Rodri. France follows at +600, possessing the deepest talent pool led by Kylian Mbappé. They have reached the previous two finals. England ranks third at +550, qualifying with a perfect record: eight wins, zero goals conceded. New manager Thomas Tuchel has instilled defensive solidity. Argentina, the defending champions, sits fourth at +800. Lionel Messi, now 39, leads what is likely his final World Cup. Dark Horses: Potential Surprises Ecuador is a compelling dark horse on a 17-match unbeaten streak, keeping 13 clean sheets. Their counter-attacking style, anchored by Moisés Caicedo, suits knockout football. Japan has defeated Germany, Spain, and Brazil since 2022. Their well-drilled pressing system could surpass their previous Round of 16 ceiling. Norway qualifies for their first World Cup since 1998. Erling Haaland makes them a threat against any opponent. Colombia, led by Luis Díaz, sits at the intersection of dark horse and fringe favorite. Host nations USA (+5000) and Mexico (+6500) have home-soil advantage but face long odds. Conclusion Spain enters as the team to beat, but France, England, and Argentina remain contenders. Among dark horses, Ecuador‘s defensive solidity, Japan’s tactical discipline, and Norway‘s offensive firepower make them most likely to exceed expectations. This mind map is created with EdrawMax and EdrawMind, serving as an essential guide for analysts and fans.
Discover the transformative power of AI in our community with this engaging introduction! In this discussion, we will explore three main topics the definition and fundamentals of AI, its applications across various industries, and the ethical considerations surrounding its use. Firstly, we will delve into what AI(This content is AI-generated. It is for reference only)
장가계 5일 4박 심층 여행 가이드 템플릿 — EdrawMind로 제작된 한국인 맞춤형 여행 계획 마인드맵으로, 중국 장가계 여행을 체계적으로 준비하고 실행할 수 있도록 돕는 전문 시각화 도구입니다. 이 템플릿은 여행의 전 과정을 아우르는 5대 핵심 모듈(출발 전 준비사항·추천 체험·실용 팁·유의사항·일차별 세부 일정)으로 구성되어 있으며, 각 단계별로 필수 정보를 한눈에 파악할 수 있도록 설계되었습니다. 출발 전 준비사항에서는 한국 여권 소지자의 비자 규정(15일 체류 무비자), 최적 여행 시기(4~10월, 특히 4월과 10월 추천), 현지 교통 안내(장가계 화이국제공항에서 직통 버스 3시간 소요), 필수 준비물(등산화·우산·보조배터리·위장막 등)까지 실용적인 정보를 제공합니다. 추천 체험에서는 부모님과 함께하는 효도 여행·한국 드라마 촬영지 탐방·고봉에서의 평지 방문·우황채에서의 짚라인 체험 등 장가계만의 특별한 활동을 제안하며, 전통문화 체험으로 무투자 문화촌의 공연과 송품 체험을 소개합니다. 실용 팁에서는 주요 관광지 내 한국어 안내 서비스 운영, 현지 음식점의 한국어 메뉴 지원, 무료 셔틀버스 이용 안내, 예산 계획(1인당 2000~3000위안)까지 한국인 여행객의 편의를 고려한 정보를 담고 있습니다. 유의사항에서는 환율 기준(2026년 4월 기준 1위안≈216.56원), 환전 팁, 명함 관광 피하기 등 안전하고 즐거운 여행을 위한 주의사항을 정리했습니다. 일차별 세부 일정은 1일차 도착과 시내 관광부터 5일차 문화 체험과 귀국까지 단계별로 구성되어 있습니다. 1일차는 공항 도착 후 호텔 체크인과 시내 맛집 탐방, 2일차는 장가계 국가삼림공원 산악 코스, 3일차는 산하·채곡 코스, 4일차는 텐먼산 국가삼림공원 관광, 5일차는 무투성 방문과 기념품 구매로 이어지며, 각 일차별로 이동 수단·숙박·식사·관광지의 세부 정보(요금·이동 시간·추천 활동)를 구체적으로 제시하여 여행의 혼란을 줄여줍니다. EdrawMind의 강력한 마인드맵 기능을 활용해 사용자는 자신의 여행 스타일에 맞춰 일정・예산・테마를 자유롭게 수정할 수 있으며, 한국어로 작성된 템플릿이라 편리하게 사용할 수 있습니다. 여행 계획 발표・동반자와의 일정 공유・개인 여행 기록 등 다양한场景에서 활용 가능하며, 전문적이고 체계적인 여행 계획을 쉽게 완성할 수 있도록 지원합니다.
This mind map analyzes favorites and dark horses for the 2026 FIFA World Cup, hosted by the USA, Canada, and Mexico. With the expansion to 48 teams, the competitive landscape has shifted. The objective is to identify top contenders and surprise packages. Key performance indicators include prediction accuracy and user engagement. Favorites: A Clear Top Four Spain emerges as the consensus front-runner at +400 odds. They are reigning European champions, powered by Lamine Yamal and Ballon d‘Or winner Rodri. France follows at +600, possessing the deepest talent pool led by Kylian Mbappé. They have reached the previous two finals. England ranks third at +550, qualifying with a perfect record: eight wins, zero goals conceded. New manager Thomas Tuchel has instilled defensive solidity. Argentina, the defending champions, sits fourth at +800. Lionel Messi, now 39, leads what is likely his final World Cup. Dark Horses: Potential Surprises Ecuador is a compelling dark horse on a 17-match unbeaten streak, keeping 13 clean sheets. Their counter-attacking style, anchored by Moisés Caicedo, suits knockout football. Japan has defeated Germany, Spain, and Brazil since 2022. Their well-drilled pressing system could surpass their previous Round of 16 ceiling. Norway qualifies for their first World Cup since 1998. Erling Haaland makes them a threat against any opponent. Colombia, led by Luis Díaz, sits at the intersection of dark horse and fringe favorite. Host nations USA (+5000) and Mexico (+6500) have home-soil advantage but face long odds. Conclusion Spain enters as the team to beat, but France, England, and Argentina remain contenders. Among dark horses, Ecuador‘s defensive solidity, Japan’s tactical discipline, and Norway‘s offensive firepower make them most likely to exceed expectations. This mind map is created with EdrawMax and EdrawMind, serving as an essential guide for analysts and fans.
Discover the transformative power of AI in our community with this engaging introduction! In this discussion, we will explore three main topics the definition and fundamentals of AI, its applications across various industries, and the ethical considerations surrounding its use. Firstly, we will delve into what AI(This content is AI-generated. It is for reference only)
장가계 5일 4박 심층 여행 가이드 템플릿 — EdrawMind로 제작된 한국인 맞춤형 여행 계획 마인드맵으로, 중국 장가계 여행을 체계적으로 준비하고 실행할 수 있도록 돕는 전문 시각화 도구입니다. 이 템플릿은 여행의 전 과정을 아우르는 5대 핵심 모듈(출발 전 준비사항·추천 체험·실용 팁·유의사항·일차별 세부 일정)으로 구성되어 있으며, 각 단계별로 필수 정보를 한눈에 파악할 수 있도록 설계되었습니다. 출발 전 준비사항에서는 한국 여권 소지자의 비자 규정(15일 체류 무비자), 최적 여행 시기(4~10월, 특히 4월과 10월 추천), 현지 교통 안내(장가계 화이국제공항에서 직통 버스 3시간 소요), 필수 준비물(등산화·우산·보조배터리·위장막 등)까지 실용적인 정보를 제공합니다. 추천 체험에서는 부모님과 함께하는 효도 여행·한국 드라마 촬영지 탐방·고봉에서의 평지 방문·우황채에서의 짚라인 체험 등 장가계만의 특별한 활동을 제안하며, 전통문화 체험으로 무투자 문화촌의 공연과 송품 체험을 소개합니다. 실용 팁에서는 주요 관광지 내 한국어 안내 서비스 운영, 현지 음식점의 한국어 메뉴 지원, 무료 셔틀버스 이용 안내, 예산 계획(1인당 2000~3000위안)까지 한국인 여행객의 편의를 고려한 정보를 담고 있습니다. 유의사항에서는 환율 기준(2026년 4월 기준 1위안≈216.56원), 환전 팁, 명함 관광 피하기 등 안전하고 즐거운 여행을 위한 주의사항을 정리했습니다. 일차별 세부 일정은 1일차 도착과 시내 관광부터 5일차 문화 체험과 귀국까지 단계별로 구성되어 있습니다. 1일차는 공항 도착 후 호텔 체크인과 시내 맛집 탐방, 2일차는 장가계 국가삼림공원 산악 코스, 3일차는 산하·채곡 코스, 4일차는 텐먼산 국가삼림공원 관광, 5일차는 무투성 방문과 기념품 구매로 이어지며, 각 일차별로 이동 수단·숙박·식사·관광지의 세부 정보(요금·이동 시간·추천 활동)를 구체적으로 제시하여 여행의 혼란을 줄여줍니다. EdrawMind의 강력한 마인드맵 기능을 활용해 사용자는 자신의 여행 스타일에 맞춰 일정・예산・테마를 자유롭게 수정할 수 있으며, 한국어로 작성된 템플릿이라 편리하게 사용할 수 있습니다. 여행 계획 발표・동반자와의 일정 공유・개인 여행 기록 등 다양한场景에서 활용 가능하며, 전문적이고 체계적인 여행 계획을 쉽게 완성할 수 있도록 지원합니다.
SQL Concept Basics
relational database
Database (DB): A collection of data processed by a computer. Data is managed in two-dimensional tables consisting of rows (records) and columns (fields). Only one data can be entered into a cell. The database is composed of multiple tables, and data reading and writing operations are performed in row units. Database Management System: (DBMS): A computer system that manages a database.
Relational database: A database that expresses data relationships in the form of two-dimensional tables.
Normalization of relational databases
First normal form: eliminate duplicate fields, each field is the smallest logical unit
Second normal form: requires entity attributes to completely depend on the primary key
Third normal form: requires that there is no non-key column passing functional dependence on any candidate key sub-column
SQL
The language used to operate the database
DDL: used to define database objects (databases, tables, fields, etc.). Common instructions: create, drop, alter,
DML: used to query or change table records. Common instructions: select, insert, update, delete
DCL: Confirm data changes, that is, transaction control. Common commands: grant, revoke
DQL: Perform corresponding queries on data as needed. Common commands: select
DTL: Confirm or cancel changes to data, that is, transaction commit and rollback Common instructions: commit, rollback
Common data types
char: fixed-length string
vchar: variable length string
int: integer type
Date type: Specify the data as date type
constraint
Restrict or add conditions to data
Non-null constraint: not null
Primary key constraints: primary key
Unique constraint: unique
Default value constraint: default
Check constraints: check
Foreign key constraints: foreign key
operator
Arithmetic operators: ,-,*,/
comparison operator
=: equal to
>=
<=
>
<
<>: not equal to
Logical Operators: not, and, or
The values that perform arithmetic operations with null are all null. You cannot use null for comparison operations. Logical operators and null produce three-valued logic
function
arithmetic function
Four arithmetic operations: addition ( ), subtraction (-), multiplication (*), division (/)
abs (numeric value): function to calculate absolute value
mod (dividend, divisor): The remainder function is not supported by SQL Server.
round function (object value, number of decimal places retained) rounding function
String functions
String1||String2: When the string concatenation function performs string concatenation, if it contains NULL, the result obtained is also NULL. This is because "||" is also a deformed function. ||Not available in SQL Server and MySQL
length (string): Count the number of characters in a string and calculate the length of the string SQL Server cannot use length, SQL Server uses len()
lower(string): Only for English strings, convert all strings to lowercase
upper(string): Only for English strings, convert all strings to uppercase
replace (object string, string before replacement, string after replacement): Replace part of a string with another string.
substring (object string from interception starting position for interception number of characters): String interception. Only supported by PostgreSQL and MySQL, see notes for other databases
date function
current_date: Returns the date of SQL execution, such as: select current_date PostgreSQL, MySQL support
current_time: Returns the time when SQL was executed. PostgreSQL, MySQL support
current_timestamp: Get the current date and time Supported by SQL Server, PostgreSQL, and MySQL, see comments for others:
extract(date element from date): Intercept date elements, such as "year", "hour", etc. Returns a numeric type PostgreSQL, MySQL support
conversion function
Data type conversion
cast (the value before conversion as the data type you want to convert):
value conversion
coalesce(data1,data2,...)
aggregate function
predicate
like
betwwen
is null
is not null
in: Unable to select NULL data.
not in: Unable to select NULL data.
exist
subtopic
SQL query
Basic selection
Basic query: select column 1, column 2,...from table
Set aliases for columns: select column 1 as alias from table
Remove duplicate rows/records from results (distinct): select distinct column from table
Aggregation query
select aggregate function (column) from table
aggregate function
count: Count the number of rows (number of records) count(*) will record all rows, including the row where null is located count(column) will exclude null
sum: Calculate the total value of data
avg: Calculate the average value of data
max: calculate the maximum value
min: Calculate the minimum value
Remove duplicate values using aggregate functions
select aggregate function (distinct column) from table
Group query
select column 1, column 2,...from table group by the column to be grouped (can be one column or multiple columns);
Common mistakes:
Write the column names other than the aggregate key in the SELECT sub in the sentence
Column aliases are written in the GROUP BY clause
The results of the GROUP BY clause cannot be sorted
Using aggregate functions in the WHERE clause
having clause: specifies conditions for the aggregation results
select column 1, column 2,...from table group by the column that needs to be grouped (can be one column or multiple columns) having condition
order by clause: sort query results
asc keyword: ascending order
desc keyword: descending order
When specifying multiple sort keys, the rule is to use the key on the left first (default ascending) order by is usually written at the end of the select statement
Data Update
Data insertion
insert into table (column 1, column 2,...) values(value 1, value 2,...);
Data deletion
drop table statement: the table can be completely deleted
delete: will leave the table (container) and delete all the data in the table Syntax: delete from table where condition;
The object of delete is a row (record) rather than a column, so it is wrong to specify the column name delete * from table; also wrong
Data Update
update table set column 1 = expression, set column 2 = expression where condition;
Use null to update (null clearing), just write the value on the right side of the assignment expression as null
Transaction: A series of updates that need to be performed in the same processing unit Newly processed collection.
commit: Submit processing
rollback: cancel processing
ACID properties: Atomicity, durability, consistency (integrity), isolation
Distinguish between transactions: 1 Each SQL statement is a transaction (auto-commit mode) 2 Until the user executes commit or rollback, it is counted as a transaction
Complex query
view
advantage: 1. Since the view does not need to save data, it can save the capacity of the storage device. The view itself is saved on the storage medium (hard drive). 2. You can save frequently used SELECT statements as views so that you don’t have to rewrite them every time.
grammar: create view view name (view column 1, view column 2,...) as select statement
Delete a view: drop view view name
A view is a saved select statement. When defining a view, you can use any select statement. Multiple views (creating views through views) can reduce SQL performance The defined view cannot be sorted (using the order by clause), because the view, like the table, has no order of data rows View cannot be updated directly
subquery
Another select statement used to define a view, written directly in the from clause
In the subquery code in the previous comment, productSum at the end is the name of the subquery However, since the name is one-time use, it will not be saved in the storage medium (hard disk) like the view. Instead, it disappears after the SELECT statement is executed.
scalar subquery
A subquery that must return a value (a single value).
scenes to be used: If you need to use an aggregate function in the where clause, you can use
Where constants or column names can be used, whether it is the SELECT clause, GROUP BY clause, HAVING clause, or ORDER BY clause, it can be used almost everywhere. Multiple rows of results cannot be returned
Correlated subquery
Suitable for application scenarios where scalar subquery cannot return multiple results
In the scalar subquery clause add where alias1.column = alias2.column
Correlated subqueries can also split collections
Association name (alias)
Scope
The association name set within the subquery can only be used within the subquery. where alias 1. column = alias 2. The column must be written in the subquery
Other knowledge points
Set operations
SQL advanced processing