February 2018
Beginner to intermediate
426 pages
10h 25m
English
The basic operation in day-to-day database use is retrieval of information. This is done with SELECT. The basic syntax is as follows:
SELECT [elements] FROM [table] WHERE [condition]
Here, elements can be a wildcard (for example, * to select everything), or the list of columns you want to retrieve. table is the table(s) from which you want to retrieve the information. The WHERE clause is optional, and if used, the query will only return the rows that fulfill the condition. For example, you can select the name, description, and price columns of all products below $100 (USD):
SELECT name,description,price FROM products WHERE price<100
The WHERE clause can also use Boolean operators to make more complex conditions:
SELECT ...
Read now
Unlock full access