1. Diving into SQL: First Steps

SQL, or Structured Query Language, is like the translator between you and a database. Imagine a database as a giant digital filing cabinet, and SQL is the language you use to ask it questions and get information.

There are two main things you do with SQL: querying and modifying.

In SQL, querying is like asking questions to get information from a database. It’s like saying, “Hey, database, show me this specific piece of data.” For example, you might ask, “What are the names of all the students?” Using SQL, you’d say: SELECT name FROM students;

On the other hand, modifying is about making changes to the data in the database. It’s like updating information, adding new stuff, or deleting things. Imagine you want to add a new student named Jane. You’d use a statement like: INSERT INTO students (name) VALUES (‘Jane’);. Or, if you need to update a student’s age, it could be something like: UPDATE students SET age = 26 WHERE name = ‘Jane’;.

So, querying is about asking the database for information, and modifying is about making changes to the data inside the database. It’s like having a conversation with the database to get or update the information you need!


Glossary

SQL

Querying

Modifying

Data

Database


Questions

  • What does sql do?
  • What is the difference between Querying and Modifying?

Leave a Comment