The questions can come in any order, so make sure you are selecting right option for all questions.
Which of the following is/are the DDL statements?(d) All of the Mentioned
(b) FALSE
(a) Create command
(a) ALTER TABLE
(a) TRUNCATE command
(d) ALTER TABLE employee ADD CONSTRAINT check_age CHECK (EMP_AGE > 23);
(b) ALTER TABLE employees DROP COLUMN salary;
(
dept_id NUMBER (2),
dept_name VARCHAR2(14) DEFAULT ‘CSE’,
create_date DATE
);
What is true about the above statement?
(a) It will automatically commit the transaction in session (b) It will create the table DEPARTMENTS in the schema (c) It will set a default value for dept_name column
(e) All the above
(a) create table table_name( column_name1 datatype1, column_name2 datatype2, column_name3 datatype3 );
(c) delete
(b) false
(c) Constraint
(a) It applies a NOT NULL constraint implicitly to the column on which it is defined (b) It applies a UNIQUE KEY constraint implicitly to the column on which it is defined
age INTEGER CHECK (age > 0));
Which type of constraint is created in the above statement?
(a) Column level constraint