Filters
Question type

Study Flashcards

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) B) and C)
F) A) and D)

Correct Answer

verifed

verified

Some RDBMSs,such as Microsoft Access,automatically make the necessary conversions to eliminate case sensitivity.

A) True
B) False

Correct Answer

verifed

verified

The special operator used to check whether an attribute value matches a given string pattern is .


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

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

Correct Answer

verifed

verified

Only numeric data types can be added and subtracted in SQL.

A) True
B) False

Correct Answer

verifed

verified

According to the rules of precedence,which of the following computations should be completed first?


A) performing additions and subtractions
B) performing multiplications and divisions
C) performing operations within parentheses
D) performing power operations

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

Correct Answer

verifed

verified

An example of a command a user would use when making changes to a PRODUCT table is .


A) CHANGE PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
B) ROLLBACK PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
C) EDIT PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';
D) UPDATE PRODUCT SET P_INDATE = '18-JAN-2004' WHERE P_CODE = '13-Q2/P2';

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

Correct Answer

verifed

verified

A(n)is performed when data are retrieved from more than one table at a time.

Correct Answer

verifed

verified

The constraint assigns a value to an attribute when a new row is added to a table.


A) CHECK
B) UNIQUE
C) NOT NULL
D) DEFAULT

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

Correct Answer

verifed

verified

The query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME,V_AREACODE,V_PHONE and V_CONTACT fields from the VENDOR table,where the values of V_CODE match and the output is ordered by the price is .


A) SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE <> VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
B) SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
C) SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT,VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;
D) SELECT PRODUCT.P_DESCRIPT,PRODUCT.P_PRICE,VENDOR.V_NAME,VENDOR.V_CONTACT, VENDOR.V_AREACODE,VENDOR.V_PHONE FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE; ORDER BY PRODUCT.P_PRICE;

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

Correct Answer

verifed

verified

The command is used to restore the database to its previous condition.


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

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

Correct Answer

verifed

verified

A(n)character is a symbol that can be used as a general substitute for other characters or commands.

Correct Answer

verifed

verified

A(n) is a query that is embedded inside another query.


A) alias
B) operator
C) nested
D) view

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

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) B) and C)
F) None of the above

Correct Answer

verifed

verified

When joining three or more tables,you need to specify a join condition for one pair of tables.

A) True
B) False

Correct Answer

verifed

verified

The query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME,V_AREACODE,V_PHONE,and V_CONTACT fields from the VENDOR table where the values of V_CODE match is .


A) SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
B) SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
C) SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
D) SELECT P_DESCRIPT,P_PRICE,V_NAME,V_CONTACT,V_AREACODE,V_PHONE FROM PRODUCT,VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE;

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

Correct Answer

verifed

verified

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) A) and D)
F) A) and B)

Correct Answer

verifed

verified

Mathematical operators cannot be used to place restrictions on character-based attributes.

A) True
B) False

Correct Answer

verifed

verified

The command,coupled with appropriate search conditions,is an incredibly powerful tool that enables a user to transform data into information.

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

A table can be deleted from the database by using the command.


A) DROP TABLE
B) DELETE TABLE
C) MODIFY TABLE
D) ERASE TABLE

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

Correct Answer

verifed

verified

Showing 21 - 40 of 92

Related Exams

Show Answer