SQL is a Structured Query Language used for interacting with a RDBMS.
* RDBMS (Relational Database Management Systems) - helps users create & maintain a relational database.
It is actually a hybrid language. It’s basically 4 types of languages in one.
In short, we can do the following things with SQL:
A Query is a set of instructions given to the RDMBS (written in SQL) that tell the RDMBS what information a developer wants it to retrieve for the developer.
Example »
View the table:
Table operations:
Insert data:
View all data:
SELECT * FROM student;
What if we don’t know a student’s major?
INSERT INTO student(student_id, name) VALUES(4, 'Kyle');
View the table:
Delete multiple rows:
DELETE FROM student WHERE student_id IN (4,5,6,7,8);
Change values that match a condition:
Basic queries:
Thanks for attention!