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