Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
189 views

SQL Bootcamp Intro

This document provides an overview of an upcoming SQL Bootcamp being offered on Lighthall.co from June 3rd to August 6th 2023. It outlines some key details about the bootcamp including prerequisites of having a database installed and an IDE. It then poses questions about what role attendees are hoping to target after learning SQL and their reasons for taking the bootcamp. The rest of the document provides definitions and explanations of basic SQL terminology like data, databases, tables, and queries. It also gives examples of different data types and constraints that can be used.

Uploaded by

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

SQL Bootcamp Intro

This document provides an overview of an upcoming SQL Bootcamp being offered on Lighthall.co from June 3rd to August 6th 2023. It outlines some key details about the bootcamp including prerequisites of having a database installed and an IDE. It then poses questions about what role attendees are hoping to target after learning SQL and their reasons for taking the bootcamp. The rest of the document provides definitions and explanations of basic SQL terminology like data, databases, tables, and queries. It also gives examples of different data types and constraints that can be used.

Uploaded by

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

SQL Bootcamp

On Lighthall.co
By Thoufiq Mohammed (techTFQ)
2023 – Cohort 2 Weekend (03-Jun-2023 to 06-Aug-2023)
Important links

• Refer my website https://techtfq.com/sql-bootcamp for


complete details about the bootcamp.
• Also refer to the FAQ document on Lighthall below:
https://lighthall.notion.site/Frequently-Asked-Questions-7f
41ad13720042a4a89785f2b5e22d4d
Pre-Requisites

• Install a RDBMS such as PostgreSQL, MySQL, Oracle,


Microsoft SQL Server etc.
• Install an IDE such as PgAdmin, MySQL Workbench, SQL
Developer, Microsoft SQL Server Management Studio etc.
Data Analyst

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 ?

How much SQL should you learn ?

The right approach to learn SQL?


“Let’s keep the class interactive”

Ask questions!!!

“Help each other”


Basic Terminologies

• Data
• Database (Relational Database)
• RDBMS
• SQL / Sequel / Structured Query Language
• Table
• Column
• Rows / Record
• Query / Statement
Data

• Anything & Everything can be considered as data.


• Any information or fact can be considered as data.
• For an insurance company, details related to its employees,
customers, their products or even their address can be
data.
• Data can be in any form such as a text message or an
image or a video or a document or single character itself.
Database

• Container which is filled with data or information which is


electronically stored in a computer system.
• Data in any form can be stored in the database.
• All companies use some sort of database to store their data.
• Purpose of storing data in the database is:
o Easily Accessed
o Modified
o Protected
o Analyzed
RDBMS vs DATABASE
SQL

• Structured Query Language (SQL). Also referred to as “SEQUEL”


• SQL is a programming language used to interact with Relational Database Management
System.
• SQL is primarily used in RDBMS.
• All major RDBMS like Oracle, MySQL, MSSQL, PostgreSQL etc use SQL.
• Using SQL, you can:
o Read data from a RDBMS
o Write data into a RDBMS
o Create, modify or delete database
o Analyze data
o Build reports
How is data stored in RDBMS ?

• In RDBMS, data is stored in multiple tables.


• Each table can have a set of rows and columns.
• Different tables will be related to each other through
certain columns forming relationship between these
tables.
Sample data in table
Is SQL different in different RDBMS ?

• Oracle
• MySQL
• Microsoft SQL Server (MSSQL)
• PostgreSQL

• Refer below link to know popular databases:


https://db-engines.com/en/ranking
DDL Commands

• Data Definition Language


• Used to define the structure of a database object such as Table, Views,
Procedure, Function etc.
• Commands include:
o CREATE
o ALTER
o DROP
o TRUNCATE
Data Type

• 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

• Data Manipulation Language


• DML commands are used to load, modify and remove data from the
database.
• Commands include:
o INSERT
o UPDATE
o DELETE
o MERGE
TCL Commands

• Transaction Control Language


• Includes COMMIT, ROLLBACK and SAVEPOINT
• Used to save/unsave open transactions in a database
session
DCL Commands

• Data Control Language


• Includes GRANT and REVOKE statements.
• Used to provide or remove permission on a
database object to a database user.
DQL Commands

• Data Query Language


• Includes only the SELECT statement
• Can be used to read data from one or multiple tables.
• Contains following clauses:
o SELECT – list of columns
o FROM – list of tables
o WHERE – filter conditions and join conditions
• Can also include following clauses:
o GROUP BY – Grouping of data based on specified column(s)
o HAVING – Filter condition for the grouped data
o ORDER BY
o LIMIT / TOP
THANK YOU! Questions ?

You might also like