elayarajack
New User
Joined: 15 Feb 2004 Posts: 8
|
|
|
|
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). |
|
Ananya
New User
Joined: 26 Feb 2004 Posts: 19 Location: Chennai
|
|
|
|
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) |
|