Which of the following functions can be used on both numeric as well as non-numeric data?
A) COUNT
B) AVG
C) STDDEV
D) VARIANCE
A
The key word which can be used to limit rows returned, allowing for wildcard characters before the matching character string.
What is LIKE?
Which of the following is not true about the COUNT function?
A) COUNT(*) returns the number of rows in the table.
B) COUNT(exp) returns the number of rows with non-null values for the exp.
C) COUNT(DISTINCT exp) returns the number of unique, non-null values in the column.
D) All are true.
D
Which of the following is not true about removing rows from a table?
A) You can use a subquery in a DELETE statement.
B) Specific rows are deleted based on the WHERE clause condition.
C) A statement like, DELETE , would cause deletion of the table from the database.
D) All of the above.
C
The two words used together to build a table.
What is CREATE TABLE?
Example:
Which statement is false for ORDER BY statement?
A) Requires a ASC or DESC keyword explicitly to sort the result set.
B) Sorts the result set in descending order using the DESC keyword.
C) Can sort based on multiple columns.
D) None of the above.
A
Three of the four required key words used to evaluate a list of conditions and return one out of multiple possible result expressions.
What are CASE, WHEN, THEN, END?
ELSE is not required but is optional
The decade in which SQL was invented.
What is the 70s?
This operator, which is only available in certain languages, allows you to filter on a window aggregate.
What is QUALIFY?
Query to select all records with "bar" in their name?
A. SELECT * FROM people WHERE name = '%bar%';
B. SELECT * FROM people WHERE name LIKE '%bar%';
C. SELECT * FROM people WHERE name IN ('bar');
D. SELECT * FROM people WHERE name = '_bar_'
B