The questions can come in any order, so make sure you are selecting right option for all questions.
INSERT INTO departments (department_id ,DEPARTMENT_NAME ,MANAGER_ID, LOCATION_ID) VALUES (100, 'Human Resources', 121, 1000);Suppose the above given statement is modified as below:
INSERT INTO departments VALUES (100, 'Human Resources', 121, 1000);
What will be the outcome of this modification?
Assume that the DEPARTMENTS table has four columns namely, department_id ,DEPARTMENT_NAME ,MANAGER_ID and LOCATION_ID .
(a) It will insert values into all the columns of the departments table assuming that column values are provided in the same sequence as the column in the table
(c) No,it is not possible at all
(c) Update table_name Set Col_name=Value where condition;
(c) Data Manipulation Language
(a) DELETE FROM table_name WHERE condition
(d) UPDATE employees SET salary = salary * 0.10;
(b) FALSE
(a) TRUNCATE command
(c) It can insert data in many rows of many tables at a time
(a) It will throw an ORA error
(b) UPDATE
(c) Generally the rows are inserted in a table based on certain rules known as constraints
(d) ALTER TABLE TableName DROP COLUMN ColumnName
(d) DELETE
(c) INSERT INTO Employees (Name, Age) VALUES ('John', 25)