new MTA DAF 3 Flashcards
Please order the following elements from a select query: INTO SELECT HAVING WHERE ORDER BY GROUP BY FROM
SELECT INTO FROM WHERE GROUP BY HAVING ORDER BY
What wildcard character can used in the SELECT command?
- or % or ?
Which keywords are necessary to add data into a table?
INSERT, VALUES
What key is replicated from the primary key of one table to a secondary table, and then all the key attributes get duplicated from the primary table?
Foreign key
What would you use to combine two expressions in a query in SQL?
AND
What statement is used to delete a table from a database?
DROP
What do you perform when you want to recall specific records from a database?
query
What would you use to combine two parameters in a query in SQL?
AND
How can you prevent the accidental loss of an entire table?
Use referential integrity.
What command do you use to perform a query in SQL?
SELECT
What statement would you use to add data to a table?
INSERT
What clause is used to combine related data from multiple table sources?
JOIN
Which clause used with the SELECT command will return values that you want to exclude from the normal parameters?
EXCEPT
What keyword used with the SELECT statement is used to not output specified records?
NOT
What command would you use to delete a table while leaving the table structure in place for future use?
TRUNCATE TABLE