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