SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
SQL: Structured Query Language
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Allows a comparison with multiple values from a list.
IN
LIKE
UPDATE
ANY
2. Provides a numerical tally of how many rows meet a specific set of criteria.
Logical Operators
COUNT()
Row
Comparison Operators
3. Takes average of each of the numeric values in the column.Can only be used in conjuction with the DISTINCT keyword and only works on numeric columns.
Table
AVG()
FROM
HAVING
4. Data must be broken into multiple columns correctly. For example - city - state - and zip should always separate columns.
ORDER BY
MIN()
Breaking up data
Self-Join
5. A language designed specifically for communicating with databases.
IN
DESC
GROUP BY
SQL (Structured Query Language)
6. A reserved word that is part of the SQL language. Never name a table or column using a keyword.
Column
SELECT
Keyword
AS
7. The container - usually a file or set of files - to store organized data
Aggregate Functions
Database
ORDER BY
UPDATE
8. Denotes that the search condition is TRUE for at least one element that the subquery returns.
LIKE
ANY
ASC
Commas
9. Combines rows from a SELECT statement's results table into groups in which specified columns have the same value.
DELETE
ANY
Primary Key
GROUP BY
10. Takes all of the values in that column and adds them together. Only works on columns containing numeric data.
SUM()
ANY
AS
Nested Subquery
11. SQL statements are case- insensitive
HAVING
SQL Statement and Case
IN
GROUP BY
12. Specifies the tables or views from which rows and columns are retrieved
Aggregate Functions
SQL (Structured Query Language)
Keyword
FROM
13. Limits the rows that appear in the result to those matching a specified condition
DBMS - Database Management System
Table
WHERE
Terminating Statements
14. Fixed-length character string. Size is specified in parenthesis. Max 255 bytes.
SQL Statement and Case
char(size)
ASC
Nested Subquery
15. = Equals - < Less Than - > Greater Than - <= Less Than or Equal To - >= Greater Than or Equal To - <> Not Equal - ! Negation of
Nested Subquery
Comparison Operators
Table
SQL (Structured Query Language)
16. _______ column name FROM table name
Keyword
UPDATE
SELECT
Breaking up data
17. Usually DBMS specific - these can provide extra functionality or simplified ways to perform specific operations.
Datatype
LIKE
SQL extensions
GROUP BY
18. A type of allowed data. Every table column has a datatype that restricts specific data in that column.
Self-Join
SQL extensions
Use of Whitespace
Datatype
19. Allows you to delete selected rows.
Row
Nested Subquery
DELETE
HAVING
20. NOT - AND - OR
varchar(size)
MIN()
Logical Operators
SELECT *
21. Multiple SQL statements must be separated by semicolons.
Terminating Statements
Column
DELETE
SELECT Statement
22. Lets you use a single- or multiple-character wildcards. Also - this command does not function in Microsoft Access.
ORDER BY
MIN()
Aggregate Functions
LIKE
23. Ascending
UPDATE
LIKE
ASC
IN
24. Although primary keys are not specifically required - most database designers make certain that every table they create has a primary key so that future data manipulation is possible.
LIKE
Always define Primary Keys
Keyword
Table
25. Database software (an application)
DBMS - Database Management System
MAX()
SQL extensions
number(size -d)
26. A single field in a table. All tables are made up of one or more columns.
SELECT Statement
Column
number(size -d)
SQL (Structured Query Language)
27. Used to select all the information in a specified column.
SELECT *
number(size -d)
LIKE
Keyword
28. Number value with a maximum number of digits of "size" total - with a maximum number of "d" digits to the right of the decimal.
SELECT Statement
Keyword
LIKE
number(size -d)
29. Simplest type of subquery.
Simple Subquery
DISTINCT
SQL (Structured Query Language)
Terminating Statements
30. Lets you change the values in one or more selected rows of a table.
WHERE
ORDER BY
UPDATE
COUNT()
31. All extra whitespace within a SQL statement is is ignored when that statement is processed.
Database
Use of Whitespace
DISTINCT
Keyword
32. A structured list of data of a specific type
FROM
Table
Column
AVG()
33. Variable-length character string. Max size is specified in parenthesis.
MIN()
Always define Primary Keys
Row
varchar(size)
34. Primary way to do a query in SQL
SELECT Statement
SELECT
Self-Join
HAVING
35. Used to nest subqueries within another subquery.
Comparison Operators
LIKE
Column
Nested Subquery
36. When selecting multiple columns be sure to specify a _____ BETWEEN each column name but NOT after the last column name.
LIKE
Commas
MAX()
DBMS - Database Management System
37. A popular open source database
INSERT INTO
Use of Whitespace
Nested Subquery
mysql
38. Descending
DESC
Simple Subquery
SELECT Statement
Column
39. A column or set of columns whose values uniquely identify every row in a table.
Terminating Statements
DESC
Primary Key
SELECT *
40. A record in a table
SELECT *
Row
DBMS - Database Management System
ASC
41. Takes a single numeric or alphabetic cloumn and finds the HIGHEST constant value within it.
Breaking up data
SELECT *
Database
MAX()
42. COUNT() - MAX() - MIN() - SUM() and AVG()
ANY
HAVING
Aggregate Functions
Datatype
43. Allows you to correlate information between different rows of the same table and combine this information in rows of a result table.
AS
Commas
Self-Join
SQL Statement and Case
44. Limits the output of the established groups into the derived result group.
SQL (Structured Query Language)
HAVING
ORDER BY
FROM
45. Method used to copy multiple records at one time using a SELECT statement
MAX()
SQL Statement and Case
INSERT INTO
LIKE
46. Specify one or more columns on which to order the display.
SQL extensions
Datatype
ORDER BY
IN
47. SQL is a language NOT an _______
Row
Simple Subquery
application
DISTINCT
48. Alias
UPDATE
AS
SELECT
Keyword
49. Takes a single numeric or alphabetic cloumn and finds the LOWEST constant value within it.
MIN()
mysql
DELETE
ASC
50. Prevents duplicate values witihin a table or group of rows from being used in the evaluation of the function's result
ORDER BY
WHERE
DISTINCT
UPDATE