Link to home
Start Free TrialLog in
Avatar of k_murli_krishna
k_murli_krishnaFlag for India

asked on

No pseudo columns in DB2

1) Like we have rownum, rowid in oracle, we do not have pseudo columns in DB2.

2) What if we want first few, last few or a range of records in between. How
   do we fetch them.

3) We can use a sequence as one column but that is not the way I would like it.

4) Please give example queries.
Avatar of k_murli_krishna
k_murli_krishna
Flag of India image

ASKER

5) There is one specific case: Suppose from main table we can create a temporary table with extra column ID which will contain 1,2,3,4 etc. columns.

6) This we can query with range in where clause. Please give me sample example for this route.

7) More points assured for each good and valid answer.
ASKER CERTIFIED SOLUTION
Avatar of ghp7000
ghp7000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial