0% found this document useful (0 votes)
2 views

SQL Basics

This presentation introduces SQL basics and data manipulation for beginner data analysts, covering topics such as databases, SQL management systems, and basic SQL queries. It explains key SQL concepts including filtering, sorting, aggregate functions, and grouping data. The final project encourages participants to design a database and write SQL queries to solve real-world problems.

Uploaded by

tomilola1013
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

SQL Basics

This presentation introduces SQL basics and data manipulation for beginner data analysts, covering topics such as databases, SQL management systems, and basic SQL queries. It explains key SQL concepts including filtering, sorting, aggregate functions, and grouping data. The final project encourages participants to design a database and write SQL queries to solve real-world problems.

Uploaded by

tomilola1013
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SQL Basics and Data

Manipulation for Beginner


Data Analysts
This presentation covers SQL basics and data manipulation for beginner data
analysts. We'll explore databases, SQL management systems, basic SQL queries,
filtering, sorting, aggregate functions, and grouping data. By the end, you'll be
equipped to design databases and write SQL queries for real-world problems.

by Prisca Ezeyinwa
Introduction to Databases and SQL
What is a Database? What is SQL?

A database is an organized collection of data that allows users to SQL (Structured Query Language) is a programming language
efficiently store, retrieve, manage, and analyze information. It's used to communicate with databases. It allows users to perform
like a digital record-keeping system. For example, a university may tasks such as retrieving specific data, inserting new data, updating
have a database to store student details, grades, and course records, and deleting unnecessary data.
registrations.
SQL Management Systems
MySQL PostgreSQL
Open-source, widely used for web applications. Advanced open-source system known for compliance and reliability.

Microsoft SQL Server Oracle Database


Enterprise-focused with strong integration with Windows-based Robust system designed for large-scale business applications.
applications.
Writing Basic SQL Queries
(SELECT, FROM, WHERE)
SELECT
Used to specify the columns you want to retrieve from a table.

FROM
Specifies the table from which you are retrieving the data.

WHERE
Allows you to filter data based on specific conditions.
Filtering and Sorting Data
Filtering Data Using WHERE Sorting Data Using ORDER BY

The WHERE clause allows us to filter data based on conditions. For The ORDER BY clause sorts the result set. For example: SELECT
example, to find all students from Ghana: SELECT * FROM name, country FROM Students ORDER BY name ASC; (This
Students WHERE country = 'Ghana'; arranges students alphabetically by name.)
Using Aggregate Functions
(SUM, COUNT, AVG)

SUM COUNT AVG


Calculates the sum of Counts the number of Calculates the average
values in a column. rows in a table. value of a column.
Grouping Data with GROUP BY and HAVING Clauses
GROUP BY HAVING

The GROUP BY clause groups records based on a column. For The HAVING clause filters grouped data. For example: SELECT
example: SELECT country, COUNT(*) FROM Students GROUP BY country, COUNT(*) FROM Students GROUP BY country HAVING
country; (This counts students from each country.) COUNT(*) > 2; (This shows only countries with more than 2
students.)
Final Project: Design and
Query a Database
Design a small database for a real-world problem (e.g., managing a beauty
salon, grocery store, or NGO donations). Write SQL queries to insert, retrieve,
filter, and analyze data. Present your findings.

This project allows you to apply the SQL skills you've learned to solve practical
problems. Good luck!

You might also like