Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

COMPLETE SQL Guide Topic Wise Functions, Study notes of Computer Science

COMPLETE SQL Guide Topic Wise Functions

Typology: Study notes

2021/2022

Available from 08/21/2023

mira-ravala
mira-ravala 🇮🇳

1 document

1 / 26

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COMPLETE
SQL
Guide
Topic Wise Functions
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download COMPLETE SQL Guide Topic Wise Functions and more Study notes Computer Science in PDF only on Docsity!

COMPLETE

SQL

Guide

Topic Wise Functions

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