Sie sind auf Seite 1von 12

Question #1

It is a good idea to use a SELECT command to display the data you changed to verify that the correct update was made. Select one: True False
Question 2 Correct Mark 1.00 out of 1.00

Flag question

Question text A subquery is appropriate only if the final result contains only data from a single table. Select one: True False
Question 3 Incorrect Mark 0.00 out of 1.00

Flag question

Question text 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? Select one: a. WHERE AcctBalance > 50 b. WHERE (CUSTOMER-AcctBalance > 50) c. WHERE (AcctBalance > 50)

d. HAVING AcctBalance > 50 e. WHERE CUSTOMER-AcctBalance > 50


Question 4 Correct Mark 1.00 out of 1.00

Flag question

Question text You cannot assign names to computed columns. Select one: True False
Question 5 Correct Mark 1.00 out of 1.00

Flag question

Question text When you connect two or more simple conditions with the AND operator, each condition must be listed on a separate line. Select one: True False
Question 6 Correct Mark 1.00 out of 1.00

Flag question

Question text Which of the following is not one of the five SQL built-in functions? Select one: a. AVG b. MAX c. COUNT d. SUM e. MODE
Question 7 Correct Mark 1.00 out of 1.00

Flag question

Question text Conditions after the WHERE require single quotes around the values for columns that have which data type? Select one: a. Numeric b. VarChar c. Char d. Both Char and VarChar e. Integer
Question 8 Correct Mark 1.00 out of 1.00

Flag question

Question text To qualify a column name, precede the name of the column with the name of the table, followed by a(n) ____. Select one: a. asterisk (*) b. percent sign (%) c. comma (,) d. period (.)
Question 9 Incorrect Mark 0.00 out of 1.00

Flag question

Question text In a nested query, the outer query is evaluated first. Select one: True False
Question 10 Correct Mark 1.00 out of 1.00

Flag question

Question text The order of the columns returned by an SQL SELECT statement are determined by the:

Select one: a. order they are listed in following WHERE. b. SORT BY clause. c. order they are listed in following FROM. d. order they are listed in following SELECT. e. ORDER BY clause.
Question 11 Incorrect Mark 0.00 out of 1.00

Flag question

Question 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? Select one: a. FROM b. ORDER BY c. WHERE d. SELECT e. GROUP BY
Question 12 Incorrect Mark 0.00 out of 1.00

Flag question

Question text 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? Select one:

a. WHERE Hours BETWEEN 10 AND 50 b. WHERE Hours = 10 and Hours = 50 c. WHERE Hours IN [10, 50] d. WHERE Hours RANGE 10 TO 50 e. WHERE Hours = MIN(10) and MAX(50)
Question 13 Correct Mark 1.00 out of 1.00

Flag question

Question text Which symbol is used in standard SQL as a wildcard to represent a single, unspecified character? Select one: a. % (percent sign) b. ! (exclamation mark) c. ? (question mark) d. ; (semi-colon) e. _ (underscore)
Question 14 Incorrect Mark 0.00 out of 1.00

Flag question

Question text Which SQL keyword is used to apply conditions to restrict groups that appear in the results of a SELECT query that uses GROUP BY? Select one: a. WHERE b. HAVING

c. DISTINCT d. LIKE e. SORT


Question 15 Incorrect Mark 0.00 out of 1.00

Flag question

Question text A composite primary key can be defined using the CONSTRAINT phrase in which SQL command? Select one: a. CREATE TABLE b. CHANGE TABLE c. BUILD TABLE d. MODIFY TABLE e. SET TABLE
Question 16 Incorrect Mark 0.00 out of 1.00

Flag question

Question text 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? Select one: a. INSERT INTO STUDENT (New Student Data) VALUES (123, 'Jones', 'Smith'); b. INSERT DATA STUDENT SET StudentID=123, Name='Jones', Advisor='Smith'; c. INPUT INTO STUDENT (123, 'Jones', 'Smith');

d. INPUT DATA STUDENT SET StudentID=123, Name=' Jones', Advisor='Smith'; e. INSERT INTO STUDENT VALUES (123, 'Jones', 'Smith');
Question 17 Correct Mark 1.00 out of 1.00

Flag question

Question text When the OR operator connects simple conditions, the compound condition will be true whenever any one of the simple conditions is true. Select one: True False
Question 18 Incorrect Mark 0.00 out of 1.00

Flag question

Question text Which of the following cannot be done using the CONSTRAINT phrase? Select one: a. Establish a referential integrity constraint. b. None of these can be done using the CONSTRAINT phrase. c. Define a foreign key. d. All of these can be done using the CONSTRAINT phrase. e. Create a single attribute primary key.
Question 19 Incorrect Mark 0.00 out of 1.00

Flag question

Question text Given the table CUSTOMER(CustID, Name, PhoneNum, AcctBalance), what is the standard SQL query phrase to retrieve the Name and Phone Number of customers? Select one: a. SELECT (CUSTOMER-Name AND CUSTOMER-PhoneNum) b. SELECT (Name, PhoneNum) c. SELECT Name, PhoneNum d. SELECT CUSTOMER-Name AND CUSTOMER-PhoneNum e. SELECT *
Question 20 Correct Mark 1.00 out of 1.00

Flag question

Question text Which of the following is not true about primary keys? Select one: a. Primary keys must be unique. b. Primary keys are used to represent relationships. c. Primary keys must be a single attribute. d. Primary keys cannot be null. e. Primary keys can be defined using a SQL CONSTRAINT phrase.
Question 21 Incorrect Mark 0.00 out of 1.00

Flag question

Question text Which SQL keyword is used to eliminate duplicate rows in the results of a SQL SELECT query? Select one: a. SORT b. REDUCE c. DISTINCT d. UNIQUE e. ORDER BY
Question 22 Incorrect Mark 0.00 out of 1.00

Flag question

Question text To open a new Microsoft Access Query window: Select one: a. click the New Query button on the Home command tab. b. click the New Query in Design view button on the Create command tab. c. click the New button on the Home command tab. d. click the Create Query button on the Create command tab. e. click the Query Design button on the Command tab.
Question 23 Incorrect Mark 0.00 out of 1.00

Flag question

Question text You must use a comma or a period to separate a table name from its alias. Select one: True False
Question 24 Incorrect Mark 0.00 out of 1.00

Flag question

Question text Which of the following is the correct SQL clause to sort the results of a SELECT query in reversealphabetic order using the Department field? Select one: a. ORDER BY Department DESC b. SORT BY Department DESC c. SORT BY Department REVERSE d. SORT BY Department e. REVERSE Department
Question 25 Incorrect Mark 0.00 out of 1.00

Flag question

Question text

Which of the following is not a standard data type used in SQL? Select one: a. Char b. Text c. Numeric d. Integer e. Varchar

Das könnte Ihnen auch gefallen