Module 3 SQL
Module 3 SQL
Learning Objectives
Module Content
What is a Database?
o Definition: A structured collection of data that allows for easy
access, management, and updating.
o Importance of databases in various applications (business,
education, healthcare, etc.).
Types of Databases
o Relational Databases (e.g., Microsoft Access, MySQL,
PostgreSQL).
o NoSQL Databases (e.g., MongoDB, Cassandra).
Database Management Systems (DBMS)
o Overview of DBMS and its functions: data storage, retrieval,
security, and backup.
o Introduction to Microsoft Access as a DBMS.
Creating a Database
o Step-by-step guide to creating a new database in Access.
o Setting up tables and defining fields with appropriate data types.
Managing Tables
o Adding, modifying, and deleting records in tables.
o Implementing primary and foreign keys.
Forms and Reports
o Creating user-friendly forms for data entry.
o Generating reports for data analysis and presentation.
What is SQL?
o Definition and role of SQL in database management.
Basic SQL Commands
o SELECT: Retrieving data from one or more tables.
o INSERT: Adding new records to a table.
o UPDATE: Modifying existing records.
o DELETE: Removing records from a table.
Basic Queries
o Writing simple SELECT queries to retrieve data.
o Filtering data using the WHERE clause.
Sorting and Grouping Data
o Using ORDER BY to sort results.
o GROUP BY and aggregate functions (SUM, COUNT, AVG) for data
analysis.
Joins
o Understanding different types of joins (INNER JOIN, LEFT JOIN,
RIGHT JOIN, FULL OUTER JOIN).
o Writing queries to combine data from multiple tables.
Subqueries and Nested Queries
o Using subqueries to perform complex data retrieval.
Data Manipulation
o Executing INSERT, UPDATE, and DELETE statements in SQL.
Here are the key characteristics of databases, along with explanations and
examples:
1. Data Independence
2. Data Integrity
3. Data Security
5. Scalability
6. Multi-User Support
7. Data Consistency
8. Transaction Management