IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

some questions in db2.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
elayarajack

New User


Joined: 15 Feb 2004
Posts: 8

PostPosted: Thu Mar 18, 2004 11:03 am
Reply with quote

hi,

plse answer the following questions

1.diff. between Repeatable Read(RR) and Cursor Steablity(CS)

2.what is TWO PHASE COMMIT.

3. hoe to see the alternative rows of a table(ie 1,3,5,7,etc).
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Mar 18, 2004 2:52 pm
Reply with quote

Hello elayarajack,

1) Diff. between Repeatable Read(RR) and Cursor Steablity(CS)

2) TWO PHASE COMMIT
This occurs when a programmer Issues a Exec CICS Syncpoint command. This is called two phase because CICS will first commit changes to the resources under its control like VSAM files and the DB2 changes are committed. Usually CICS signals DB2 to complete the next phase and release all the locks.

3) Display alternate rows of a table

Hope this helps,

Regards
Mayuresh Tendulkar
Back to top
View user's profile Send private message
Ananya

New User


Joined: 26 Feb 2004
Posts: 19
Location: Chennai

PostPosted: Thu Mar 18, 2004 5:10 pm
Reply with quote

Dear ,

Here is the query. try working out.

FOR ODD NUMBERS (1,3,5,7,....)

SELECT E, EMP.* FROM
(SELECT ROWNUM E, EMP.* FROM EMP) EMP
WHERE MOD(E,2)=1

FOR EVEN NUMBERS(2,4,6,8,.....)

SELECT E, EMP.* FROM
(SELECT ROWNUM E, EMP.* FROM EMP) EMP
WHERE MOD(E,2)=0


HOPE I HAVE ANSWERED UR QUERY 8)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
No new posts INCLUDE condition questions DFSORT/ICETOOL 1
Search our Forums:

Back to Top