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