AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-001





Question ID 8067

Examine the structure of student table: Name Null Type STU ID NOT NULL NUMBER(3) NAME VARCHER2(25) ADDRESS VARCHER2(50) GRADUATION DATE Currently the table is empty. You have decided that null values should not be allowed for the NAME column.Which statement restricts NULL values from being entered into column?

Option A

ALTER TABLE student ADD CONSTRAINT name(NOT NULL);

Option B

ALTER TABLE student ADD CONSTRAINT NOT NULL (name);

Option C

ALTER TABLE student MODIFY CONSTRAINT name(NOT NULL);

Option D

ALTER TABLE student MODIFY(name varcher2(25) NOT NULL);

Correct Answer D
Explanation Explanation/Reference: Explanation: Answer D is correct because this query add NOT NULL constraint to Student table Incorrect Answers: A: Incorrect ADD CONSTRAINT clause in ALTER TABLE command. B: Incorrect ADD CONSTRAINT clause in ALTER TABLE command. C: Incorrect syntax using MODIFY clause of ALTER TABLE command. There is no MODIFY CONSTRAINT clause in ALTER TABLE command. Oracle 8, DBA Certification Exam Guide, Jason S. Couchman, p. 143 Chapter 4: Creating Other Database Objects in Oracle


Question ID 8068

You have decided to permanently remove all the data from the STUDENT table and you need the table structure in the future. Which single command performs this?

Option A

DROP TABLE student;

Option B

TRUNCATE TABLE student;

Option C

DELETE* FROM student;

Option D

TRUNCATE TABLE student KEEP STRUCTURE;

Option E

DELETE* FROM student KEEP STRUCTURE

Correct Answer B
Explanation Explanation/Reference: Explanation: Answer B is correct because after truncating table you delete all data and keep table and its structure for future use. Also command TRUNCATE reset highwatermark level to zero for table. Incorrect Answers: A: This DDL operation will drop table and its structure without possibility to rollback this operation. C: This operation can be used to perform question task, but it works slowly and usually used when you need to delete NOT ALL table rows. It does not reset high water mark for table. D: Incorrect clause KEEP STRUCTURE inside TRUNCATE TABLE command. E: Incorrect clause KEEP STRUCTURE inside DELETE command. Oracle 8, DBA Certification Exam Guide, Jason S. Couchman, p. 151 Chapter 4: Creating Other Database Objects in Oracle

Send email to admin@getfreedumps for new dumps request!!!