- Install and set up the database software (e.g., SQL Server, MySQL, or SQLite). Explore database features and basic syntax.
- Practice basic datatypes and operators in SQL. Write queries using arithmetic, logical, and comparison operators.
- Write SQL expressions and evaluate them using SELECT statements.
- Create a new database and attach/detach it. Explore database management commands.
- Create tables with various datatypes and constraints (PRIMARY KEY, NOT NULL).
- Drop existing tables safely using DROP TABLE.
- Insert records into tables using INSERT INTO.
- Update existing records using UPDATE with conditions.
- Delete records from tables using DELETE with conditions.
- Write SELECT queries with WHERE clause and different conditions (>, <, =, LIKE, IN, BETWEEN).
- Perform JOIN operations: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN.
- Create and use triggers for automatic actions on table events (INSERT, UPDATE, DELETE).
- Work with DATE and TIME functions: CURRENT_DATE, NOW(), DATEADD, DATEDIFF, etc.
- Define and use keys in tables: PRIMARY KEY, FOREIGN KEY, UNIQUE, and AUTO_INCREMENT/IDENTITY.
- Mini project: Create a database for a small business or student management system with multiple tables, keys, triggers, and CRUD operations.