


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
COMPLETE SQL Guide Topic Wise Functions
Typology: Study notes
1 / 26
This page cannot be seen from the preview
Don't miss anything!
Basic SQL Syntax ▪ SQL keywords ▪ Data types ▪ Operators ▪ SQL statements ▪ SELECT ▪ INSERT ▪ UPDATE ▪ DELETE
3 Data Manipulation Language (DML) ▪ SELECT statement (SELECT, FROM, WHERE, ORDER BY, GROUP BY, HAVING, JOINs) ▪ INSERT statement ▪ UPDATE statement ▪ DELETE statement
4 Aggregate Functions ▪ SUM, AVG, COUNT, MIN, MAX ▪ GROUP BY clause ▪ HAVING clause
Joins ▪ INNER JOIN ▪ LEFT JOIN ▪ RIGHT JOIN ▪ FULL OUTER JOIN ▪ SELF JOIN ▪ CROSS JOIN
Subqueries ▪ Types of subqueries (scalar, column, row, table) ▪ Nested subqueries ▪ Correlated subqueries
9 Views ▪ Creating views ▪ Modifying views ▪ Dropping views
Indexes ▪ Creating indexes ▪ CREATE INDEX ▪ Using indexes for query optimization
Data Integrity and Security ▪ Data integrity constraint ▪ Referential integrity, entity integrity ▪ GRANT and REVOKE statements (granting and revoking permissions) ▪ Database security best practices
Stored Procedures and Functions ▪ Creating stored procedures ▪ CREATE PROCEDURE ▪ Executing stored procedures ▪ EXEC ▪ Creating functions ▪ Using functions in queries
Advanced SQL Concepts ▪ Recursive queries ▪ Pivot and unpivot operations ▪ Window functions: ▪ Row_number, rank, dense_rank, lead & lag ▪ CTEs (Common Table Expressions) ▪ Dynamic SQL
Schema Management ▪ Creating schemas ▪ CREATE SCHEMA ▪ Altering schemas ▪ ALTER SCHEMA ▪ Dropping schemas ▪ DROP SCHEMA
Triggers ▪ Creating triggers ▪ CREATE TRIGGER ▪ Using triggers
Error Handling ▪ TRY-CATCH blocks ▪ Raising custom exceptions