Searching for "i"

Q:

What is SPUFI?

Answer

SPUFI stands for SQL processing using file input. It is the DB2 interactive menu-driven tool used by developers to create database objects.


 

Report Error

View answer Workspace Report Error Discuss

Q:

How does DB2 use multiple table indexes?

Answer

DB2 use the multiple indexes to satisfy multiple predicates in a SELECT statement that are joined by an AND or OR.

Report Error

View answer Workspace Report Error Discuss

Q:

What is DBRM? What it contains? When it will be created?

Answer

- DBRM stands for Database Request Module


- The output of pre-compile process is represented as DBRM


- The SQL statements are extracted from the host language by the pre-compiler

Report Error

View answer Workspace Report Error Discuss

Q:

Difference between Embeded SQL and Dynamic SQL?

Answer

Static (embedded) SQL:


1.In static SQL how database will be accessed is predetermined in the embedded SQL statement.


2.It is more swift and efficient.


3.SQL statements are compiled at compile time.


4.Parsing, validation, optimization, and generation of application plan are done at compile time.


5.It is generally used for situations where data is distributed uniformly.


6.EXECUTE IMMEDIATE, EXECUTE and PREPARE statements are not used.


7. It is less flexible 


 


Dynamic (interactive) SQL:


1.In dynamic SQL, how database will be accessed is determined at run time.


2.It is less swift and efficient.


3.SQL statements are compiled at run time.


4.Parsing, validation, optimization, and generation of application plan are done at run time.


5.It is generally used for situations where data is distributed non-uniformly.


6.EXECUTE IMMEDIATE, EXECUTE and PREPARE statements are used.


7.It is more flexible.

Report Error

View answer Workspace Report Error Discuss

Q:

How do you display last 5 records in DB2?

Answer

SELECT * FROM table_name ORDER BY column_name desc Fetch first 5 rows only;

Report Error

View answer Workspace Report Error Discuss

Q:

What is sqlcode -811?

Answer

SELECT statement has resulted in retrieval of more than one row.

Report Error

View answer Workspace Report Error Discuss

Q:

What is REORG? When it is used?

Answer

REORG reorganizes data on physical storage to reclutser rows, positioning overflowed rows in their proper sequence, to reclaim space, to restore free space. It is used after heavy updates, inserts and delete activity and after segments of a segmented tablespace have become fragmented.

Report Error

View answer Workspace Report Error Discuss

Q:

How do you insert a record with a nullable column?

Answer

To insert a NULL, move -1 to the null indicator


To insert a valid value, move 0 to the null indicator


 

Report Error

View answer Workspace Report Error Discuss