SQL - Structured Query Language Flashcards
What is a database?
A database can store multiple tables which hold data. This data can be stored, edited, sorted and searched to find records containing specific criteria.t
What is record?
A record is multiple fields of data linked to one specific subject, e.g. the rows in the table, completed for each unique entry into the table .
What are the 3 SQL commands?
SELECT
FROM
WHERE
For SELECT, in the database table, what is it referring to?
Selecting which fields should be displayed, e.g. the columns
For SELECT, how are two fields separated?
With a comma, e.g. SELECT name, age
For FROM, in the database table, what is it referring to?
The table name, e.g. FROM studentstbl
For WHERE, in the database table, what is it referring to?
The condition that needs to be met, e.g. WHERE age > 18
In WHERE, how would you show multiple conditions?
AND (boolean logic)
What is the purpose of SQL?
A strucured query language that searches for data in a database table.
What is a query?
When the user is searching for specific data in a table, e.g. meets specific criteria such as age limit.