On Github javasop / intro-sql
Structured Query Language.
Standard way to define, store, manipulate data.
Industry standard.
Unified and Shared language to manage data which can span multiple systems.
Syntax is close to spoken language.
DELETE FROM user Where name = "Sam"
in SQL
CREATE DATABASE Turing
In Turing, we have teachers, students, courses, classes. They are the "things" that are in our database.
We define these in what we call Tables. And they look like tables you see in any application (word, excel .. etc)
Each table has rows, and columns
Columns give properties to our data or table: name, age, gender, race ... etc
Rows are entries in our table: Sam, Rebecca, John etc
The Q in SQL. We need a way to do a search on our data.
This answers the question: I need to get a subset of my data that satisfies a condition.
Give me the student with the name = "sam"
We do that with a SELECT statement.
SELECT * FROM students where name = "sam"