Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
10 Cards in this Set
- Front
- Back
What is the term SQL short for?
|
Structured Query Language
|
|
What is the SELECT statement used for?
|
Selecting data from a SQL database table.
|
|
What happends when you put(*) after the SELECT statement?
|
It selects all data from the chosen table.
|
|
The SELECT INTO statement is used to?
|
To select data from a table and insert it into another table at the same time.
|
|
What does the DISTINCT clause do?
|
Used together with the SELECT keyword it returns a dataset with unique entries for certain database table column.
|
|
What is the WHERE clause used for?
|
Used to select data conditionally, by adding it to already existing SQL SELECT query.
|
|
What will be the result of the following query?
SELECT LastName, FirstName FROM Students WHERE gender = 'Male' ODER BY LastName ASC |
Selects the Last and first name of all male students from the table 'Students' in ascending order by Last name.
|
|
What does this do?:
SELECT count(*) FROM Scores WHERE score > 5 |
It counts how many records have a score higher than 5 from the table Scores
|
|
What is the SQL AVG syntax?
|
SELECT AVG(Column1)
FROM Table1 |
|
When is the SQL AND clause used?
|
Is used when you want to specify more than one condition in your SQL WHERE clause, and at the same time you want all conditions to be true.
|