Filters
Question type

Study Flashcards

To delete a row from the PRODUCT table,use the ____ command.


A) COMMIT
B) DELETE
C) ERASE
D) KILL

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

With the exception of the ____________________ process,most RDBMS vendors use SQL that deviates little from the ANSI standard SQL.

Correct Answer

verifed

verified

Date procedures are often more software-specific than other SQL procedures.

A) True
B) False

Correct Answer

verifed

verified

A common practice is to create a(n)____________________ on any field that is used as a search key,in comparison operations in a conditional expression,or when you want to list rows in a specific order.

Correct Answer

verifed

verified

____________________ words are words used by SQL to perform specific functions.

Correct Answer

verifed

verified

Which query will list all the rows in which the inventory stock dates occur on or after January 20,2010?


A) SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE
FROM PRODUCT
WHERE P_INDATE >= '20-JAN-2010'
B) SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE
FROM PRODUCT
WHERE P_INDATE >= $20-JAN-2010$
C) SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE
FROM PRODUCT
WHERE P_INDATE <= '20-JAN-2010'
D) SELECT P_DESCRIPT,P_QOH,P_MIN,P_PRICE,P_INDATE
FROM PRODUCT
WHERE P_INDATE >= {20-JAN-2010}

E) All of the above
F) None of the above

Correct Answer

verifed

verified

To list all the contents of the PRODUCT table,you would use ____.


A) LIST * FROM PRODUCT;
B) SELECT * FROM PRODUCT;
C) DISPLAY * FROM PRODUCT;
D) SELECT ALL FROM PRODUCT;

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause.

A) True
B) False

Correct Answer

verifed

verified

What is a subquery? When is it used? Does the RDBMS deal with subqueries any differently from normal queries?

Correct Answer

verifed

verified

A subquery,also known as a nested query ...

View Answer

Which query will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand and display the results in a column labeled TOTVALUE?


A) SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH*P_PRICE AS TOTVALUE
FROM PRODUCT;
B) SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH=P_PRICE AS TOTVALUE
FROM PRODUCT;
C) SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH/P_PRICE AS TOTVALUE
FROM PRODUCT;
D) SELECT P_DESCRIPT,P_QOH,P_PRICE,P_QOH-P_PRICE AS TOTVALUE
FROM PRODUCT;

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

A(n)____________________ is a group of database objects,such as tables and indexes,that are related to each other.

Correct Answer

verifed

verified

SQL allows the use of logical restrictions on its inquiries such as OR,AND,and NOT.

A) True
B) False

Correct Answer

verifed

verified

If you have not yet used the COMMIT command to store the changes permanently in the database,you can restore the database to its previous condition with the ROLLBACK command.

A) True
B) False

Correct Answer

verifed

verified

What are the wildcard characters that are used with the LIKE command? Provide one or more examples of each.

Correct Answer

verifed

verified

% means any and all following or precedi...

View Answer

The special operator used to check whether an attribute value is within a range of values is ____.


A) BETWEEN
B) NULL
C) LIKE
D) IN

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

Which query will output the table contents when the value of the character field P_CODE is alphabetically less than 1558-QW1?


A) SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE
FROM PRODUCT
WHERE P_CODE <'1558-QW1';
B) SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE
FROM PRODUCT
WHERE P_CODE = [1558-QW1]
C) SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE
FROM PRODUCT
WHERE P_CODE = (1558-QW1)
D) SELECT P_CODE,P_DESCRIPT,P_QOH,P_MIN,P_PRICE
FROM PRODUCT
WHERE P_CODE = {1558-QW1}

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

In Oracle,the ____ command is used to change the display for a column,for example,to place a $ in front of a numeric value.


A) DISPLAY
B) FORMAT
C) CHAR
D) CONVERT

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

What command is used to save changes to the database? What is the syntax for this command?

Correct Answer

verifed

verified

Any changes made to the table contents a...

View Answer

In the SQL environment,the word ____________________ covers both questions and actions.

Correct Answer

verifed

verified

SQL is considered difficult to learn; its command set has a vocabulary of more than 300 words.

A) True
B) False

Correct Answer

verifed

verified

Showing 21 - 40 of 100

Related Exams

Show Answer