Course Details
š¹ Introduction to SQL What is SQL (Structured Query Language)? Types of SQL commands: DDL, DML, DCL, TCL Overview of relational databases and tables š¹ Basic SQL Syntax Writing SQL queries Case sensitivity and formatting Comments in SQL š¹ Data Retrieval SELECT statement basics Selecting specific columns Selecting all columns (SELECT *) Using DISTINCT to get unique values š¹ Filtering Data WHERE clause Operators: =, !=, <, >, <=, >= Logical operators: AND, OR, NOT Using BETWEEN, IN, LIKE (wildcards %, _) š¹ Sorting and Limiting Data ORDER BY clause (ascending/descending) LIMIT or TOP to restrict rows š¹ Aggregate Functions COUNT(), SUM(), AVG(), MIN(), MAX() Using GROUP BY for aggregation HAVING clause to filter grouped data š¹ Joins Understanding table relationships INNER JOIN LEFT JOIN / LEFT OUTER JOIN RIGHT JOIN / RIGHT OUTER JOIN FULL JOIN / FULL OUTER JOIN Self joins š¹ Modifying Data INSERT INTO for adding records UPDATE for modifying records DELETE for removing records š¹ Creating and Modifying Tables CREATE TABLE syntax Defining columns and data types Primary keys and constraints (NOT NULL, UNIQUE) ALTER TABLE to add/drop/modify columns DROP TABLE to delete tables š¹ Data Types in SQL Numeric types (INT, FLOAT, DECIMAL) String types (CHAR, VARCHAR, TEXT) Date and time types (DATE, TIME, DATETIME) š¹ Constraints and Indexes Primary key Foreign key Unique constraint Default values Index basics š¹ Subqueries and Nested Queries What is a subquery? Using subqueries in SELECT, WHERE, and FROM clauses š¹ SQL Best Practices Writing readable and maintainable queries Using aliases (AS) Avoiding SQL injection basics