SQL Flashcards
What does ORDER BY do?
Sorts the result-set in ascending or descending order.
Ascending by default, descending by use of DESC
What does SELECT do?
Selects data from a database, storing it in a table called the ‘result-set’
What does SELECT DISTINCT do?
Selects and returns only different values
What does WHERE do?
Extracts data that meets a given condition
What does AND do?
Displays a record if all conditions are met
What does OR do?
Displays a record if one of the conditions is met
What does NOT do?
Displays a record if the conditions are not true
What does INSERT INTO do?
Inserts new records into a table
INSERT INTO table_name VALUES (value1, value2,…
What is a NULL value?
A field with no value