Page 0: (1,1,'a') (11,2,'a') (3,3,'c') Page 1: (13,5,'c') (2,6,'b') (9,4,'a') Page 2: (6,2,'a') (17,7,'a') (7,3,'b') Page 3: (14,6,'a') (8,4,'c') (5,2,'b') Page 4: (10,1,'b') (15,5,'b') (12,6,'b') Page 5: (4,2,'a') (16,9,'c') (18,8,'c') -- and then the same tuples repeated for pages 6-11
SQL: create T as (select distinct y from R)
create T as (select distinct y from R)
Assuming:
R
T