Tag: databases

Questions Related to databases

CREATE PROCEDURE p1() BEGIN CREATE TABLE T1 (C1 CHAR); INSERT INTO T1 VALUES ('A'); SAVEPOINT SAVEPOINT1 ON ROLLBACK RETAIN CURSORS; INSERT INTO T1 VALUES ('B'); SAVEPOINT SAVEPOINT2 ON ROLLBACK RETAIN CURSORS; INSERT INTO T1 VALUES ('C'); SAVEPOINT SAVEPOINT3 ON ROLLBACK RETAIN CURSORS; INSERT INTO T1 VALUES ('D'); ROLLBACK TO SAVEPOINT SAVEPOINT3; ROLLBACK TO SAVEPOINT SAVEPOINT1; COMMIT WORK; INSERT INTO T1 VALUES ('E'); END@ Call p1() @ How many rows will be present in Table T1

  1. 0

  2. 1 (A)

  3. 5 (A,B,C,D,E)

  4. 2 (A,E)


Correct Option: D
  1. Control centre

  2. IBM Data studio

  3. Visual Explain

  4. Command editor


Correct Option: B
  1. Returns current date

  2. Generate the access plan

  3. Suggests performance hints that can be implemented

  4. Drop and create the stored procedure


Correct Option: D
  1. Attributes and Fields

  2. Fields and Records

  3. Records and Fields

  4. Fields and Attributes


Correct Option: C
  1. A special way of selecting data

  2. The process of adding primary key to a table

  3. The process of arranging information stored in a database in a way, which removes redundancy and ambiguity.

  4. A special way of retrieving data


Correct Option: C
  1. Rollup

  2. Rollback

  3. CUBE

  4. I and III both


Correct Option: D