SQL_2024
SQL_2024
1. Introduction to SQL:
o Evolution and history of SQL.
o Relational database concepts.
o Key components: tables, columns, rows, and relationships.
o SQL standards and variations.
2. Database Design:
o Understanding database architecture.
o Entity-Relationship (ER) modeling.
o Normalization: first, second, and third normal form.
o Creating and managing database schemas.
3. Data Manipulation Language (DML):
o SELECT statement: retrieving data from tables.
o INSERT statement: adding new records.
o UPDATE statement: modifying existing records.
o DELETE statement: removing records from tables.
4. Data Definition Language (DDL):
o Creating and altering database objects: tables, views, indexes, etc.
o Modifying table structures: adding/removing columns, changing data types, etc.
o Dropping database objects.
o Managing constraints: primary keys, foreign keys, unique constraints, etc.
5. Querying Data:
o SELECT statement syntax and usage.
Examples:
Calculating the total sales for each product category: SELECT category, SUM(sales)
FROM table GROUP BY category.
Determining the number of customers in each city: SELECT city, COUNT(customer_id)
FROM table GROUP BY city.
Calculating the average rating for each movie genre: SELECT genre, AVG(rating) FROM
table GROUP BY genre.
Finding the highest and lowest temperatures recorded in each month: SELECT
MONTH(date), MAX(temperature), MIN(temperature) FROM table GROUP BY
MONTH(date).
References :
https://www.mysqltutorial.org/
https://www.w3schools.com/sql/
http://sqlzoo.net/