Database Concepts and SQL Fundamentals
Covers fundamental database concepts including SQL operations, database objects, transaction control, and data types across DB2 and Oracle platforms.
Questions
In which sceneria would you use the ROLLUP operator for expresiion or column with in a GROUPBY clause?
- To find the groups forming the subtotal in a row
- To create group-wise totals for the groups specified within a GROUPBY clause
- To create grouping for expressions or columns specified within a GROUPBY clause in one direction,from right to left for calculating the subtotals.
- To create grouping for expressions or columns specified within a GROUPBY clause in all possible direction,which is cross-tabular report for calculating the subtotals
Which statement best describes the GROUPING function?
- used to set the order for the groups to be used for calculating the grand totals and subtotals
- used to form various groups to caculate totals and subtotals created using ROLLUP and CUBE operators
- used to specify if the NULLL value in an expresion is a stored NULL value or created by ROLLUP and CUBE
- used to specify the concatenated groups expressions to be used for calculating the grand totals and subtotals
Given below is the SQL statements executed in a user session: CREATE TABLE product (pcode NUMBER(2) ,pname VARCHAR2(10)); INSERT INTO product VALUES (1,'PEN'); INSERT INTO product VALUES (2,'PENCIL'); SAVEPOINT A; UPDATE product SET pcode=10 where pcode=1; SAVEPOINT B; DELETE FROM product where pcode=2; COMMIT; DELETE FROM product where pcode=10; ROLLBACK TO SAVEPOINT a; which statement describes the consequences?
- both the DELETE statements would be rolledback
- No SQL statements would be rolledback
- only the second DELETE statements would be rolledback
- both the DELETE statements and the update statements would be rolledback
which madatory clause has to be added to the following statements successfully create an external table called EMPDET? CREATE TABLE EMPDET( empno CHAR(2) ,ename CHAR(5) ,deptno N?UMBER(4)) ORGANIZATION EXTERNAL ( LOCATION('emp.dat'));
- TYPE
- REJECT LIMIT
- ACESS PARAMETERS
- DEFAULT DIRECTORY
which two statements are true about the GROUPING function ?
- used to find the groups forming the subtotal in a row
- used to identify the NULL value in the aggregate function.
- use to form the group sets involved in generating the totals and subtotals
- only be used with ROLLUP and CUBE operators specified in the GROUP BY clause
the following are the steps for a correlated subquery ,listed in a random order: 1)the where clause of the outer query is evaluted 2)The candiadate row is fetched from the table specified in the outer query 3) The procedure is repeated for the subsequent rows of the table,till all the rows are processed. 4)Rows are returned by the inner query ,after being evaluted with the value from the candiadate row in the outer query. Identify the option that contains the steps in the correct sequences in which the oracle server evalutes a correlated subquery ?
- 4,2,1,3
- 4,1,2,3
- 2,4,1,3
- 2,1,4,3
How to prevent ROW MIGRATION?
- specify large pct free
- specify large pct used
- specify large initial & next sizes
- specify small initrans
Which NLS parameter can be specified only as an environment variable?
- NLS_Language
- NLS_Lang
- NLS_Sort
- NLS_Territory
How many maximum number of multiplex control files can present in a database?
- 4
- 8
- 12
- 16
Multiple WHAT can be share an SGA?
- SERVER PROCESSES
- INSTANCES
- TABLESPACES
- DATABASES
wHICH SCRIPT CREATE THE DATA DICTIONARY TABLES?
- catalog.sql
- sql.bsq
- catproc.sql
- dictionary.sql
which can not be possible?
- move index to a new tablespace
- change the initial extent size of the index
- collect statistics on the index
- specify a new name for the index
Which file can be multiplexed?
- parameter file
- data files
- redo log files
- alert.log file
WHY DO THE FLAT FILES ARE USED AS SOURCES OR TARGETS ?
- ITS A DUMMY RULE
- TO BALANCE THE EXTRACTION AND LOADING PROCESS
- EASY TO MAINTAIN
- TO RESOLVE THE PERFORMANCE ISSUES
A UNIX VERSIONED OS SHOULD BE AVAILABLE INORDER TO INSTALL INFORMATICA
- True
- False
Which of the following will delete all the rows from the table T1
- Delete * from table T1
- Delete all from T1
- Delete * from T1
- Delete From T1
An Alias can be alter name forhich DB2 object
- Sequence
- Trigger
- Schema
- View
Which of the following action may cause a trigger to be fired?
- Drop
- Alter
- Delete
- Rollback
Which of the following DB2 data types does NOT have a fixed length?
- XML
- INT
- CHAR
- Double
To which of the following resources can a lock NOT be applied?
- Table Space
- Bufferpools
- Table
- Rows