Filters
Question type

Study Flashcards

Which query will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand?


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

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

Correct Answer

verifed

verified

The ____ command would be used to delete the table row where the P_CODE is 'BRT-345'.


A) DELETE FROM PRODUCT
WHERE P_CODE = 'BRT-345';
B) REMOVE FROM PRODUCT
WHERE P_CODE = 'BRT-345';
C) ERASE FROM PRODUCT
WHERE P_CODE = 'BRT-345';
D) ROLLBACK FROM PRODUCT
WHERE P_CODE = 'BRT-345';

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

Correct Answer

verifed

verified

Most SQL implementations yield case-insensitive searches.

A) True
B) False

Correct Answer

verifed

verified

The basic SQL vocabulary has fewer than ____________________ words.

Correct Answer

verifed

verified

100
one hu...

View Answer

If your integer values are relatively small,use ____________________ instead of INT.

Correct Answer

verifed

verified

A(n) ____ is an alternate name given to a column or table in any SQL statement.


A) alias
B) data type
C) stored function
D) trigger

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

Correct Answer

verifed

verified

To delete an index,use the ____________________ command.

Correct Answer

verifed

verified

Which of the following is used to select partial table contents?


A) SELECT <column(s) >
FROM <Table name>
BY <Conditions>;
B) LIST <column(s) >
FROM <Table name>
BY <Conditions>;
C) SELECT <column(s) >
FROM <Table name>
WHERE <Conditions>;
D) LIST<column(s) >
FROM <Table name>
WHERE <Conditions>;

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

Correct Answer

verifed

verified

The COMMIT command does not permanently save all changes.In order to do that,you must use SAVE.

A) True
B) False

Correct Answer

verifed

verified

The ____ command is used to restore the table's contents to their previous values.


A) COMMIT; RESTORE;
B) COMMIT; BACKUP;
C) COMMIT; ROLLBACK;
D) ROLLBACK;

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

Correct Answer

verifed

verified

The SQL command that lets you select attributes from rows in one or more tables is ____.


A) INSERT
B) SELECT
C) COMMIT
D) UPDATE

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

Correct Answer

verifed

verified

You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.

A) True
B) False

Correct Answer

verifed

verified

The ____ command is used with the ALTER TABLE command to modify the table by deleting a column.


A) DROP
B) REMOVE
C) DELETE
D) ERASE

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

Correct Answer

verifed

verified

COUNT is designed to tally the number of non-null "values" of an attribute,and is often used in conjunction with the DISTINCT clause.

A) True
B) False

Correct Answer

verifed

verified

Which query will output the table contents when the value of V_CODE is equal to 21344?


A) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE V_CODE <> 21344;
B) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE V_CODE <= 21344;
C) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE V_CODE = 21344;
D) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE V_CODE => 21344;

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

Correct Answer

verifed

verified

Which query will output the table contents when the value of P_PRICE is less than or equal to 10?


A) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE P_PRICE <> 10;
B) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE P_PRICE <= 10;
C) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE P_PRICE => 10;
D) SELECT P_DESCRIPT,P_INDATE,P_PRICE,V_CODE
FROM PRODUCT
WHERE P_PRICE = 10;

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

Correct Answer

verifed

verified

The ANSI prescribes a standard SQL-the current fully approved version is known as SQL-07.

A) True
B) False

Correct Answer

verifed

verified

Any changes made to the contents of a table are not physically saved on disk until you use the SAVE <table name> command.

A) True
B) False

Correct Answer

verifed

verified

To join tables,simply enumerate the tables in the FROM clause of the SELECT statement.The DBMS will create a Cartesian product of every table in the FROM clause.To get the correct results,you need to select the rows in which the common attributes do not match.

A) True
B) False

Correct Answer

verifed

verified

The conditional LIKE must be used in conjunction with wildcard characters.

A) True
B) False

Correct Answer

verifed

verified

Showing 61 - 80 of 100

Related Exams

Show Answer