Questions
It is possible to use Transactional control statements in Database Triggers?
- True
- False
Which of the following is not correct about Cursor ?
- Cursor is a named Private SQL area
- Cursor holds temporary results
- Cursor is used for retrieving multiple rows
- SQL uses implicit Cursors to retrieve rows
Which of the following is NOT VALID in PL/SQL ?
- Select … into
- Update
- Create
- Delete
A Transaction ends
- Only when it is Committed
- Only when it is Rolledback
- When it is Committed or Rolledback
- None of the above
Which command or action causes an automatic rollback?
- GRANT
- EXIT at pl/sql prompt
- Alter command
- System crash
- Commit before a system crash
If an UNIQUE KEY constraint on DATE column is created, it will accept the rows that are inserted with SYSDATE ?
- True
- False
Why is searching for large-table full-table scans critical to SQL tuning?
- They indicate an optimized execution plan.
- They may be able to be tuned to use an index
- The full-table scan should be normalized from the database design
- A full-table scan is always sub-optimal.
IDMS is a ______________ type of database
- Relational
- Hierarchical
- Network
- What is IDMS
What is IDMS?
- Intergrated Data Management System
- India Department of Management Studies
- International Data Management System
- Integrated Data Management Services
READY command is for _______
- VOLUME
- AREA
- RECORD
- PAGE
BIND is for ________
- AREA
- VOLUME
- PAGE
- RECORD
READY follows BIND (TRUE/FALSE)
- True
- False
Which of the following DB2 command can be used to change bob’s password?
- CHANGE PASSWORD USER bob OLD bobpass NEW newpass
- CONNECT TO sample USER bob USING bobpass NEW newpass
- CONNECT TO sample USER bob USING bobpass NEW newpass CONFIRM newpass
- No DB2 command can be used to change the password of a user ID
Which of the following privilege is required to create a new package in a database?
- CONTROL
- BIND
- EXECUTE
- BINDADD
Which of the following system catalog view contains the grantee information of the REFERENCE privilege on a view?
- SYSCAT.VIEWS
- SYSCAT.TABLES
- SYSCAT.TABAUTH
- SYSCAT.REFERENCES
Which of the following statement is true?
- a table is an ordered set of data records
- an index always accesses data in ascending order
- a view stores the data on a different tablespace
- an index can be used to enforce uniqueness in a table
CREATE DATABASE command creates some default table spaces. What are they? Choose all that apply.
- SYSLOGSPACE
- TEMPSPACE1
- USERSPACE1
- SYSCATSPACE
What keyword is used to define the number of pages that the database will write to one container before skipping to the next container?
- SKIPSIZE
- PREFETCHSIZE
- STRIPSIZE
- EXTENTSIZE
Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) JOB_CAT VARCHARD2(30) SALARY NUMBER(8,2) Which statement shows the maximum salary paid in each job category of each department?
- SELECT dept_id, job_cat, MAX(salary) FROM employees WHERE salary > MAX(salary);
- SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id, job_cat;
- SELECT dept_id, job_cat, MAX(salary) FROM employees;
- SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id;
Examine the description of the STUDENTS table: STD_ID NUMBER(4) COURSE_ID VARCHARD2(10) START_DATE DATE END_DATE DATE Which two aggregate functions are valid on the START_DATE column? (Choose two)
- SUM(start_date)
- COUNT(start_date)
- AVG(start_date, end_date)
- MIN(start_date)