Filters
Question type

Study Flashcards

Given the table STUDENT(StudentID,Name,Advisor) ,which of the following SQL statements would be used to change the value of the Advisor field to 'Smith' for all rows in the STUDENT table?


A) UPDATE STUDENT SET Advisor = 'Smith';
B) MODIFY STUDENT SET Advisor = 'Smith';
C) MODIFY Advisor SET STUDENT = 'Smith';
D) UPDATE Advisor = 'Smith';
E) SET STUDENT Advisor = 'Smith';

Correct Answer

verifed

verified

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
B) REVERSE Department
C) ORDER BY Department DESC
D) SORT BY Department DESC
E) SORT BY Department REVERSE

Correct Answer

verifed

verified

SQL was developed by ________ in the late 1970s.

Correct Answer

verifed

verified

Using SQL commands,multiple tables can be queried using either subqueries or ________.

Correct Answer

verifed

verified

Using SQL commands,multiple tables can be queried so that all the values from one table appear in the results,regardless of whether they have one or more corresponding values in the other table,by using the SQL ________ command.

Correct Answer

verifed

verified

The TOP built-in function in SQL is used to find the maximum value in a numeric column.

Correct Answer

verifed

verified

Using standard SQL,unmatched rows will not appear in the result of a join.

Correct Answer

verifed

verified

In SQL,to refer to a range of values in a WHERE clause,use the WITHIN keyword.

Correct Answer

verifed

verified

Referential integrity constraints can be created using the ON DELETE phrase when the table is created using the CREATE TABLE statement.

Correct Answer

verifed

verified

Existing tables in a database can be structurally modified by using the SQL ________ command.

Correct Answer

verifed

verified

The ON DELETE CASCADE referential integrity constraint does not apply when rows are deleted using the SQL DELETE command.

Correct Answer

verifed

verified

Discuss SQL data types.

Correct Answer

verifed

verified

Common examples of standard SQL data typ...

View Answer

In Microsoft Access,tables are added to a QBE Query window by selecting the tables from the ________ dialog box.

Correct Answer

verifed

verified

Which SQL keyword can be used in conjunction with wildcards to select partial values?


A) SELECT
B) SEARCH
C) FIND
D) SUBSTRING
E) LIKE

Correct Answer

verifed

verified

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 CUSTOMER-AcctBalance > 50
B) WHERE (CUSTOMER-AcctBalance > 50)
C) WHERE AcctBalance > 50
D) WHERE (AcctBalance > 50)
E) HAVING AcctBalance > 50

Correct Answer

verifed

verified

If you need to create a primary key that is a composite key using SQL,the key may be defined when the table is created using the CREATE TABLE statement.

Correct Answer

verifed

verified

The order of the columns returned by an SQL SELECT statement is determined by the:


A) ORDER BY clause.
B) SORT BY clause.
C) order they are listed in following SELECT.
D) order they are listed in following WHERE.
E) order they are listed in following FROM.

Correct Answer

verifed

verified

In SQL,the NOT keyword can be combined with the IN keyword to form the NOT IN condition for selecting values.

Correct Answer

verifed

verified

Built-in SQL functions cannot be applied to data combined using the GROUP BY keyword.

Correct Answer

verifed

verified

A composite primary key can be defined using the CONSTRAINT phrase in which SQL command?


A) MODIFY TABLE
B) CHANGE TABLE
C) CREATE TABLE
D) SET TABLE
E) BUILD TABLE

Correct Answer

verifed

verified

Showing 21 - 40 of 96

Related Exams

Show Answer