SQL Bootcamp Intro
SQL Bootcamp Intro
On Lighthall.co
By Thoufiq Mohammed (techTFQ)
2023 – Cohort 2 Weekend (03-Jun-2023 to 06-Aug-2023)
Important links
Data Engineer
Data Scientist
Which role can you SQL Developer
target aft er learning SQL
from this Bootcamp ? Business Analyst
Software Engineer
Quality Analyst
Etc…
Why are you learning SQL ?
Ask questions!!!
• Data
• Database (Relational Database)
• RDBMS
• SQL / Sequel / Structured Query Language
• Table
• Column
• Rows / Record
• Query / Statement
Data
• Oracle
• MySQL
• Microsoft SQL Server (MSSQL)
• PostgreSQL
• INT / NUMBER
• VARCHAR / STRING
• DATE
• FLOAT / DECIMAL
• BOOLEAN
Constraints
• CHECK constraint allows you to control the values that can be inserted into a column.
• By applying NOT NULL constraint on a column, you make sure that this column will never have NULL
values.
• UNIQUE constraint makes sure that the values in your column are always unique. It can have NULL
values.
• A table can only have one PRIMARY KEY constraint. Primary key constraint can either be applied to
a single column or to a combination of different columns. If a column (or if a combination of
multiple columns) is defined as a primary key, then this column/columns will always have unique
values across all the rows of that table. Also, primary key column cannot have null values hence
primary key can be treated as a combination of UNIQUE and NOT NULL constraints.
• FOREIGN KEY constraint can be used to form relation between tables. It basically helps to create a
master child relation between 2 tables.
DML Commands