Simplifying
SQL for
Beginners
Navya Muraharikar
#1
What is SQL?
SQL (Structured Query Language) is a
way to talk to and manage databases.
Think of it like giving instructions to a
computer to store, retrieve, and
manipulate data.
Navya Muraharikar
#2
Imagine a Spreadsheet:
Imagine your data is in a big electronic
spreadsheet. Each piece of information
has its own box (cell) in rows and
columns. SQL helps you interact with
this spreadsheet.
Navya Muraharikar
#3
Talking to the Database:
You use SQL commands to tell the
database what you want to do. There
are four main things you can do with
SQL:
SELECT: Ask the database for specific
information.
INSERT: Put new information into the
database.
UPDATE: Change existing
information.
DELETE: Remove information from the
database.
Navya Muraharikar
#4
SELECT - Getting Info:
If you want to know something from the
database, you use SELECT. It's like
asking a question. For example, "Tell
me the names of all customers."
Navya Muraharikar
#5
INSERT - Adding New Stuff:
When you have new information to add,
you use INSERT. It's like putting a new
entry into the spreadsheet. For
instance, "Add a new customer with
this name and email."
Navya Muraharikar
#6
UPDATE - Changing Things:
If you make a mistake or need to
update something, you use UPDATE. It's
like correcting a typo in the
spreadsheet. For example, "Change the
email of this customer."
Navya Muraharikar
#7
DELETE - Removing Stuff:
When you want to get rid of some
information, you use DELETE. It's like
erasing a row from the spreadsheet.
Like saying, "Remove this customer."
Navya Muraharikar
Thank You!
Navya Muraharikar