• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/25

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

25 Cards in this Set

  • Front
  • Back
Which of the following is the correct SQL clause to sort the results of a SELECT query
in reverse-alphabetic order using the Department field?
a. SORT BY Department REVERSE
b. SORT BY Department
c. SORT BY Department DESC
d. ORDER BY Department DESC
e. REVERSE Department
When you connect two or more simple conditions with the AND operator, each
condition must be listed on a separate line.
True
False
Which of the following is not a standard data type used in SQL?
a. Integer
b. Numeric
c. Varchar
d. Char
e. Text
Which SQL keyword is used to specify a condition that rows must meet to be included
in the results of an SQL SELECT query?
a. GROUP BY
b. WHERE
c. SELECT
d. FROM
e. ORDER BY
Which SQL keyword is used to apply conditions to restrict groups that appear in the
results of a SELECT query that uses GROUP BY?
a. DISTINCT
b. LIKE
c. SORT
d. HAVING
e. WHERE
You must use a comma or a period to separate a table name from its alias.
True
False
Which of the following cannot be done using the CONSTRAINT phrase?
a. All of these can be done using the CONSTRAINT phrase.
b. None of these can be done using the CONSTRAINT phrase.
c. Establish a referential integrity constraint.
d. Define a foreign key.
e. Create a single attribute primary key.
Which of the following is not one of the five SQL built-in functions?
a. AVG
b. MAX
c. SUM
d. MODE
e. COUNT
Which SQL keyword is used to eliminate duplicate rows in the results of a SQL SELECT
query?
a. SORT
b. REDUCE
c. UNIQUE
d. DISTINCT
e. ORDER BY
To qualify a column name, precede the name of the column with the name of the table,
followed by a(n) ____.
a. percent sign (%)
b. comma (,)
c. asterisk (*)
d. period (.)
To open a new Microsoft Access Query window:
a. click the New Query in Design view button on the Create command tab.
b. click the New Query button on the Home command tab.
c. click the Create Query button on the Create command tab.
d. click the Query Design button on the Command tab.
e. click the New button on the Home command tab.
A composite primary key can be defined using the CONSTRAINT phrase in which SQL
command?
a. CREATE TABLE
b. CHANGE TABLE
c. SET TABLE
d. MODIFY TABLE
e. BUILD TABLE
Conditions after the WHERE require single quotes around the values for columns that
have which data type?
a. Both Char and VarChar
b. Numeric
c. VarChar
d. Integer
e. Char
Which symbol is used in standard SQL as a wildcard to represent a single, unspecified
character?
a. ? (question mark)
b. _ (underscore)
c. % (percent sign)
d. ; (semi-colon)
e. ! (exclamation mark)
Which of the following is the correct SQL clause to restrict the results of a SELECT
query to only records that have a value in the range of 10 to 50 in the Hours column?
a. WHERE Hours BETWEEN 10 AND 50
b. WHERE Hours = MIN(10) and MAX(50)
c. WHERE Hours IN [10, 50]
d. WHERE Hours = 10 and Hours = 50
e. WHERE Hours RANGE 10 TO 50
Which of the following is not true about primary keys?
a. Primary keys must be a single attribute.
b. Primary keys cannot be null.
c. Primary keys are used to represent relationships.
d. Primary keys must be unique.
e. Primary keys can be defined using a SQL CONSTRAINT phrase.
The order of the columns returned by an SQL SELECT statement are determined by
the:
a. ORDER BY clause.
b. order they are listed in following FROM.
c. order they are listed in following SELECT.
d. SORT BY clause.
e. order they are listed in following WHERE.
Given the table CUSTOMER(CustID, Name, PhoneNum, AcctBalance), what is
the standard SQL query phrase to retrieve the Name and Phone Number of customers?
a. SELECT CUSTOMER-Name AND CUSTOMER-PhoneNum
b. SELECT *
c. SELECT Name, PhoneNum
d. SELECT (CUSTOMER-Name AND CUSTOMER-PhoneNum)
e. SELECT (Name, PhoneNum)
In a nested query, the outer query is evaluated first.
True
False
A subquery is appropriate only if the final result contains only data from a single table.
True
False
When the OR operator connects simple conditions, the compound condition will be
true whenever any one of the simple conditions is true.
True
False
Given the table CUSTOMER(CustID, Name, PhoneNum, AcctBalance), what is
the standard SQL query phrase to retrieve data for customers with an account balance
greater than 50?
a. WHERE AcctBalance > 50
b. WHERE (CUSTOMER-AcctBalance > 50)
c. WHERE CUSTOMER-AcctBalance > 50
d. HAVING AcctBalance > 50
e. WHERE (AcctBalance > 50)
It is a good idea to use a SELECT command to display the data you changed to verify
that the correct update was made.
True
False
Given the table STUDENT(StudentID, Name, Advisor), which of the following
SQL statements would be used to add new student data to the STUDENT table?
a. INPUT DATA STUDENT SET StudentID=123, Name=' Jones',
Advisor='Smith';
b. INSERT DATA STUDENT SET StudentID=123, Name='Jones',
Advisor='Smith';
c. INSERT INTO STUDENT (New Student Data) VALUES (123, 'Jones', 'Smith');
d. INSERT INTO STUDENT VALUES (123, 'Jones', 'Smith');
e. INPUT INTO STUDENT (123, 'Jones', 'Smith');
You cannot assign names to computed columns.
True
False