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