sql / beginner
Snippet
Basic Data Retrieval
The SELECT statement is used to fetch data from a database. This query retrieves two specific columns: first_name and last_name from the employees table.
snippet.sql
1
2
SELECT first_name, last_nameFROM employees;
Breakdown
1
SELECT first_name, last_name
Specifies the columns you want to retrieve.
2
FROM employees;
Specifies the source table from which to fetch the data.