SQL Is Easy
Free interactive SQL tutorial in under an hour
SELECT
Imagine you are asking someone to get you something from the store. At a minimum, you have to tell them what to get and where to get it from.
SELECT says what you want, FROM says where to get it from.
Try typing this in the Editor window and pressing "Run":
SELECT * FROM students
The asterisk says to get EVERYTHING from the students table.
We can also show a specific field from the table, try:
SELECT first_name FROM students
SQL Editor
Editor
Query Results
Output
Editor
Output
SELECT
Imagine you are asking someone to get you something from the store. At a minimum, you have to tell them what to get and where to get it from.
SELECT says what you want, FROM says where to get it from.
Try typing this in the Editor window and pressing "Run":
SELECT * FROM students
The asterisk says to get EVERYTHING from the students table.
We can also show a specific field from the table, try:
SELECT first_name FROM students