Hi,
I want to insert a page_number in a record that continuously count base on duplicate in a column. example output:
ID PAGE_ORDER PAGE_NUMBER
1 7 1
2 7 1
3 7 1
4 7 1
5 7 1
6 10 2
7 10 2
8 10 2
9 10 2
10 10 2
11 13 3
12 13 3
13 13 3
14 13 3
15 13 3
16 9 4
17 9 4
18 9 4
19 9 4
20 9 4
21 16 5
22 16 5
23 16 5
24 16 5
25 16 5
26 11 6
27 11 6
28 11 6
29 11 6
30 11 6
31 12 7
32 12 7
33 12 7
34 12 7
35 12 7
36 4 8
37 4 8
38 4 8
39 4 8
40 4 8
41 5 9
42 5 9
43 5 9
44 5 9
45 5 9
46 14 10
47 14 10
48 14 10
49 14 10
50 14 10
51 15 11
52 15 11
53 15 11
54 15 11
55 15 11
56 6 12
57 6 12
58 6 12
59 6 12
60 6 12
61 1 13
62 1 13
63 1 13
64 1 13
65 1 13
66 2 14
67 2 14
68 2 14
69 2 14
70 2 14
71 8 15
72 8 15
73 8 15
74 8 15
75 8 15
76 3 16
77 3 16
78 3 16
79 3 16
80 3 16
How can I add the page_number
column just like in the output?
The rule of page_number column is to count continuously base on duplicate records in page_order column.
Please advice. Thank you.