Exam 4: Single-Table Queries
Exam 1: Introduction to Premiere Products, Henry Books, and Alexamara Marina Group75 Questions
Exam 2: Database Design Fundamentals75 Questions
Exam 3: An Introduction to SQL75 Questions
Exam 4: Single-Table Queries75 Questions
Exam 5: Multiple-Table Queries75 Questions
Exam 6: Updating Data75 Questions
Exam 7: Database Administration75 Questions
Exam 8: MySQL Special Topics75 Questions
Select questions type
How do you construct the SELECT query?
Free
(Essay)
4.8/5
(31)
Correct Answer:
In SQL, you use the SELECT command to query a database. The basic form of the SQL SELECT command is SELECT-FROM-WHERE. After you type the word SELECT, you list the columns that you want to include in the query results. This portion of the command is called the SELECT clause. Next, you type the word FROM followed by the name of the table that contains the data you need to query.This portion of the command is called the FROM clause. Finally, after the word WHERE, you list any conditions (restrictions)that apply to the data you want to retrieve.This optional portion of the command is called the WHERE clause.
The ____ clause lets you group data on a particular column.
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
B
A(n)____________________ column is a column that does not exist in the database but can be computed using data in the existing columns.
Free
(Short Answer)
4.9/5
(40)
Correct Answer:
computed
The ____ function calculates a total of the values in a column.
(Multiple Choice)
4.8/5
(50)
MySQL has special functions, called ____________________ functions, to calculate sums, averages, counts, maximum values, and minimum values.
(Short Answer)
4.9/5
(37)
The only arithmetic operators that can be used in SELECT statements are + for addition and - for subtraction.
(True/False)
4.8/5
(36)
When data is sorted on two columns, the more important column is called the major sort key.
(True/False)
4.8/5
(43)
When you use the MAX function, SQL ignores any ____________________ value(s)in the column and eliminates them from the computations.
(Short Answer)
4.9/5
(32)
The WHERE clause is used to limit the rows that are included in a query's result.
(True/False)
4.8/5
(33)
A(n)____________________ clause provides a concise way of phrasing certain conditions.
(Short Answer)
4.9/5
(37)
A simple condition has the form: column name, comparison operator, and then either another column name or a value.
(True/False)
4.8/5
(37)
____________________ conditions are formed by connecting two or more simple conditions.
(Short Answer)
4.7/5
(36)
The column on which data is to be sorted is called a sort ____________________.
(Short Answer)
4.8/5
(43)
MySQL supports only the version of the "not equal to" comparison operator.
(True/False)
4.8/5
(44)
You can also assign a name to a computed column by following the computation with the word ____________________ and the desired name.
(Short Answer)
4.8/5
(34)
To sort records in descending order, follow the name of the sort key with the REVERSE operator.
(True/False)
4.8/5
(37)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)