Filters
Question type

Study Flashcards

If the MAXRETAIL column of the PROMOTION table has been set as unused,which of the following commands is valid?​


A) ​ALTER TABLE promotion RESET maxretail USED;
B) ​ALTER TABLE promotion DROP COLUMN maxretail;
C) ​ALTER TABLE promotion DROP UNUSED COLUMNS;
D) ​both b and c

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

Correct Answer

verifed

verified

The name of a table can be changed with the ____________________ command.​

Correct Answer

verifed

verified

RENAME
REN...

View Answer

Which of the following symbols cannot be used in a table name?​


A) ​_
B) ​%
C) ​#
D) ​none of the above

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

Correct Answer

verifed

verified

Which of the following SQL*Plus commands will display the structure of a table?​


A) ​DISPLAY
B) ​DESC
C) ​DSC
D) ​VIEW

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

Correct Answer

verifed

verified

The precision of a NUMBER does not include the decimal point itself in the total number of digits that can be stored in a column.​

A) True
B) False

Correct Answer

verifed

verified

To delete all the rows in a table and free up the storage space that was occupied by those rows,the ____ command should be used.​


A) ​ALTER TABLE...DELETE
B) ​TRUNCATE ROWS
C) ​TRUNCATE TABLE
D) ​DELETE...FROM

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

Correct Answer

verifed

verified

A table name can consist of numbers,letters,and blank spaces.​

A) True
B) False

Correct Answer

verifed

verified

​Which of the following datatypes refers to fixed-length character data,where n represents the maximum length of the column?


A) ​CHAR(n)
B) ​VARCHAR(n)
C) ​VARCHAR2(n)
D) ​LONG

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

Correct Answer

verifed

verified

​If a new column is added to the PROMOTION table,where will the new column be listed?


A) ​before the GIFT column
B) ​after the GIFT column
C) ​after the MINRETAIL column
D) ​after the MAXRETAIL column

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

Correct Answer

verifed

verified

A CHAR column cannot be resized to a width that is smaller than the data it already contains.​

A) True
B) False

Correct Answer

verifed

verified

A table name can contain the number sign and ____________________ symbols.

Correct Answer

verifed

verified

The DELETE TABLE command can be used to remove a table from a database.​

A) True
B) False

Correct Answer

verifed

verified

The ____________________ clause of the ALTER TABLE command can be used to change the size of a column.

Correct Answer

verifed

verified

A table that has been dropped without the PURGE option can be retrieved using the FLASHBACK TABLE command.​

A) True
B) False

Correct Answer

verifed

verified

If you are creating a new table from data contained in an existing table,new column names can be specified by including a list of column names ____.​


A) before the AS clause
B) ​after the AS clause
C) in the subquery
D) after the subquery

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

Seven bytes are allocated in a DATE column to store the century,year,month,day,hour,minute,and second of a date._________________________​

A) True
B) False

Correct Answer

verifed

verified

The DROP UNUSED COLUMNS clause can be used with the ____________________ command to delete any column previously set as unused.

Correct Answer

verifed

verified

A column name can consist of up to 225 characters.​

A) True
B) False

Correct Answer

verifed

verified

Which of the following is a valid SQL statement?​


A) ​CREATE TABLE newname (colA NUMBER,colB DATE) ;
B) ​CREATE TABLE newname as SELECT * FROM books;
C) ​CREATE TABLE newname (colA,colB) ;
D) ​CREATE TABLE newname (colA DATE,colB VARCHAR2(3) ;

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

Correct Answer

verifed

verified

Showing 81 - 100 of 136

Related Exams

Show Answer