Filters
Question type

Study Flashcards

Structure of the CUSTOMERS table Structure of the CUSTOMERS table    ​ -Which of the following commands will change the name of the LAST NAME column to LAST_NAME in the CUSTOMERS table?​ A)  ALTER TABLE customers MODIFY lastname to last_name;​ B)  ​ALTER TABLE customers CHANGE lastname to last_name; C)  ​ALTER TABLE customers MODIFY (lastname,last_name) ; D)  ​none of the above ​ -Which of the following commands will change the name of the LAST NAME column to LAST_NAME in the CUSTOMERS table?​


A) ALTER TABLE customers MODIFY lastname to last_name;​
B) ​ALTER TABLE customers CHANGE lastname to last_name;
C) ​ALTER TABLE customers MODIFY (lastname,last_name) ;
D) ​none of the above

Correct Answer

verifed

verified

If a new table is being created based upon a subquery,the subquery must be enclosed in which of the following symbols?​


A) " "
B) | |​
C) ​' '
D) ​( )

Correct Answer

verifed

verified

The TRUNCATE TABLE command can be used to delete a table from a database._________________________​

Correct Answer

verifed

verified

Which of the following rules does not apply to column names in Oracle 12c?​


A) ​Column names can contain numbers.
B) ​Column names can be up to 30 characters in length.
C) ​Column names must begin with a letter.
D) ​Column names can contain an ampersand (&) .

Correct Answer

verifed

verified

A database ____________________ is a defined,self-contained structure in Oracle 12c.

Correct Answer

verifed

verified

A database must be shut down before the ALTER TABLE command can be executed.​

Correct Answer

verifed

verified

The syntax of the CREATE TABLE command requires that the column list be enclosed in parentheses._________________________​

Correct Answer

verifed

verified

When using the ALTER TABLE...DROP COLUMN command,which of the following is not correct?​


A) ​The command's effect on the table is permanent.
B) ​You cannot delete the last remaining column in a table.
C) ​The command deletes both the column and its contents.
D) ​The command can be used to delete multiple columns from a table.

Correct Answer

verifed

verified

​Which command is used to rename a table you own?


A) ​ALTER TABLE...RENAME
B) ​ALTER TABLE...SET NAME
C) ​RENAME...AS
D) ​RENAME...TO

Correct Answer

verifed

verified

D

The maximum width of the NUMBER datatype is ____ digits.


A) ​7
B) ​30
C) ​38
D) ​255

Correct Answer

verifed

verified

C

Structure of the PROMOTION table​ Structure of the PROMOTION table​    -​Which of the following commands will change the name of the PROMOTION table to GIFT? A)  ALTER TABLE promotion NAME TO gift​ B)  ​ALTER TABLE promotion TO gift; C)  ​RENAME TABLE promotion TO gift; D)  ​RENAME promotion TO gift; -​Which of the following commands will change the name of the PROMOTION table to GIFT?


A) ALTER TABLE promotion NAME TO gift​
B) ​ALTER TABLE promotion TO gift;
C) ​RENAME TABLE promotion TO gift;
D) ​RENAME promotion TO gift;

Correct Answer

verifed

verified

D

​Which of the following keywords can be used to change the size,datatype,and/or default value of an existing column?


A) ​ADD
B) ​MODIFY
C) ​CHANGE
D) ​RESET

Correct Answer

verifed

verified

​Each ____________________ name within a table must be unique.

Correct Answer

verifed

verified

​What is the maximum width that can be assigned to a DATE column?


A) ​1
B) ​8
C) ​12
D) ​none of the above

Correct Answer

verifed

verified

When defining columns for a table in the CREATE TABLE command,the column list must be enclosed in which of the following symbols?​


A) ​" "
B) ​' '
C) ​( )
D) ​| |

Correct Answer

verifed

verified

Structure of the CUSTOMERS table Structure of the CUSTOMERS table    ​ -​Which of the following commands will display the structure of the CUSTOMERS table? A)  ​DESC customers B)  ​DESCRIBE customers C)  ​DSC customers; D)  ​both a and b ​ -​Which of the following commands will display the structure of the CUSTOMERS table?


A) ​DESC customers
B) ​DESCRIBE customers
C) ​DSC customers;
D) ​both a and b

Correct Answer

verifed

verified

The scale of a NUMBER column indicates the number of digits that can be displayed to the right of the decimal point.​

Correct Answer

verifed

verified

A(n) ____ simply identifies the type of data that Oracle 12c will be expected to store in a column.​


A) ​data definition
B) ​data format
C) ​datatype
D) ​data record

Correct Answer

verifed

verified

The RENAME command can be used to assign a table to a new schema.​

Correct Answer

verifed

verified

​Which of the following terms refers to commands that are used to create or modify database tables?


A) ​data manipulation language (DML)
B) ​data control language (DCL)
C) ​data definition language (DDL)
D) ​data formatting language (DFL)

Correct Answer

verifed

verified

Showing 1 - 20 of 136

Related Exams

Show Answer