Process Overview
SQL (Structured Query Language) is the language used to ask questions and get information from databases. It helps you find, add, change, or remove data by writing simple commands.
Jump into concepts and practice - no test required
SQL (Structured Query Language) is the language used to ask questions and get information from databases. It helps you find, add, change, or remove data by writing simple commands.
+-------------------+ +-------------------+ +-------------------+
| User writes | | Database engine | | Data storage |
| SQL query | ----> | processes query | ----> | tables & rows |
+-------------------+ +-------------------+ +-------------------+
^ |
| v
+-------------------------------------------------<-------+
Results returnedSELECT statement do in SQL?SELECT statement is used to specify which columns of data you want to see from a table.name from a table called students?SELECT [columns] FROM [table]; so the column name comes after SELECT and the table name after FROM.employees with columns id, name, and salary, what will this query return?SELECT name FROM employees WHERE salary > 50000;
name column from the filtered rows.SELECT name salary FROM employees;
name salary lacks a comma.employees is correct, SELECT is spelled correctly, and WHERE is optional.products with columns product_id, name, and price. You want to find all products priced between 10 and 20 inclusive. Which query correctly does this?price BETWEEN 10 AND 20 means price ≥ 10 and ≤ 20.