QS Training SQL Overview
QS Training SQL Overview
QL SQL Overview
S Trình bày: Vũ Quang Sơn
• Set permissions
Why SQL
SQL
• Easy to learn
L
SQ
IV. SQL Advanced
V. MySQL & Security
VI. SQL Performance
S L
I. Database Structure
• The Data Definition Language (DDL)
• Creating a Database
• Table Definitions (create, drop, alter)
• Constraint Definitions (assertions,
domains)
• Aliases and Synonyms (create, drop alias)
• Database Structure
o Single-database Architecture
o Multi-database Architecture
o Multi-location Architecture
o Databases on Multiple Servers
II. SQL Basic
• Statements
• Data Types, Constants
L
Q
S
• Expressions, Built-in Functions
• Missing Data (Null Values)
• Simple Queries
o select, from, distinct, where, limit
o Search Conditions (=, <>, <, <=, >, >=,
between, in, like, is null, and, or, not)
o Sorting (Order By)
• Column Functions
o SUM, AVG, MIN, MAX, COUNT
III. SQL Intermediate
• Database Updates
– Single/multi insert, delete, update
• Subqueries
• Joins, Union, Wildcard
• Grouped Queries (Group By)
• Group Search Conditions (Having)
SQL
IV. SQL Advanced
• SQL Procedures SQL
• SQL View
• SQL Transactions
• SQL Scripts
– Using comments
– Variables
– Built-in Global Variables
– Flow Control
• Indexes (create, drop index)
V. MySQL & Security
• Definition, Usages and Compares with
PostgreSQL, Sqlite, MSSQL, etc.
• SQL Security Concepts
– User-Ids, Security Objects, Privileges
• Views and SQL Security
• Granting Privileges (GRANT)
– Column Privileges
– Passing Privileges (GRANT OPTION)
• Revoking Privileges (REVOKE)
– REVOKE and the GRANT OPTION
– REVOKE and the ANSI/ISO Standard
VI. SQL Performance
• Overview
• EXPLAIN SQL
• Optimize Schema and Data Types
• Indexing for High Performance
• Query Performance Optimization
• Best practices
L
SQ
THANK YOU!