Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
some questions in db2.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
elayarajack

New User


Joined: 15 Feb 2004
Posts: 8

PostPosted: Thu Mar 18, 2004 11:03 am    Post subject: some questions in db2.
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
References
PostPosted: Thu Mar 18, 2004 11:03 am    Post subject: Re: some questions in db2. Reply with quote

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 257
Location: USA

PostPosted: Thu Mar 18, 2004 2:52 pm    Post subject:
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: 21
Location: Chennai

PostPosted: Thu Mar 18, 2004 5:10 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1