SQL Basics
SQL Basics
GHOUSSEIN Edouardo
October 23, 2024
1 Introduction
SQL (Structured Query Language) is a standardized language for managing and
manipulating databases. This document provides a comprehensive overview of
basic SQL commands with examples.
1
1 INSERT INTO employees ( id , name , position , salary ) VALUES
2 (1 , ’ Alice ’ , ’ Manager ’ , 60000.00) ,
3 (2 , ’ Bob ’ , ’ Developer ’ , 50000.00) ;
2
2.8 8. Joining Tables
Command: JOIN
Description: Combines rows from two or more tables based on a related
column.
1 SELECT employees . name , departments . name
2 FROM employees
3 JOIN departments ON employees . department_id = departments . id ;
3 Conclusion
This document covers the basic SQL commands and their usage. For more
advanced topics, refer to the official SQL documentation or additional resources.