Skip to content

Tom-Fynes/sql-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

134 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL 101

The SQL 101 course is designed for someone aspiring to build a career as data engineer, analyst, or a data scientist. This course covers fundamental SQL concepts, including querying, database design, and data manipulation. learning to extract insights and support data-driven decision-making.

By the end of the course, you will be writing complex queries, optimizing database performance, and using SQL to solve practical problems.

Recommened Programs

You may also use any other database engine you feel comfortable with however the create database statement may need to be adjusted. It maybe also be that some functions are not in your chosen engine or are named differently.

Setup

To participate please fork the repo and follow one of the setup documents. please save your queries here. Also while going through the corse if you find an issue or think of an improvement please log an issue here

Grades

Grades have been added to help break your journy into helpful sections. Each section will cover different skill levels and will help you demonstrate your ability to other people.

Grade 1: Introduction to SQL and Databases

Grade 2: Intermediate Data Retrieval

  • Limiting Results: Using LIMIT (or TOP in some SQL dialects) to restrict the number of returned rows.
  • Basic Functions: Introduction to SQL functions like COUNT, SUM, AVG, MIN, and MAX.
  • Aliasing: Using AS to rename columns in the result set.

Grade 3: Advanced Data Retrieval

  • Joins: Understanding and using different types of joins (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN).
  • Aggregate Functions: Grouping data with GROUP BY and filtering groups with HAVING.
  • Subqueries: Writing and using subqueries in SELECT, FROM, WHERE, and HAVING clauses.
  • Set Operations: Using UNION, INTERSECT, and EXCEPT.

Grade 4: Data Manipulation

Grade 5: Database Design and Data Definition

  • Altering Tables: Using ALTER TABLE to modify existing tables (e.g., adding, dropping columns).
  • Dropping Tables: Using DROP TABLE to delete tables.
  • Constraints: Understanding and implementing primary keys, foreign keys, unique constraints, and check constraints.

Grade 6: Advanced SQL Functions and Expressions

Grade 7: Performance Tuning and Optimization

  • Indexes: Understanding the importance of indexes and how to create them.

Grade 8: Transactions and Security

  • Transactions: Using BEGIN TRANSACTION, COMMIT, and ROLLBACK to manage transactions.

Extra

In this section we will cover technoligy specific topics such as reading CSVs in DuckDB and variable in SQL Server (TSQL).

  • Cursors: Using CURSOR in SQL Server to loop through data.

About

A beginners guide to SQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages