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