CR 8.5, Oracle 8i DB
I know this question has been answered before, but I am having all kinds of trouble accessing old "searched" posts with the new look Tek-Tips.
What I am trying to do is find the most efficent way of selecting 50 (fifty) random records from an ever growing Transaction table.
My guess is that we could take the ever changing total TRANSACTION record count divide it by 50 - and use that result (integer) as the increment for each of the records in the SELECT statement.
-------------------
eg. Total TRANSACTION record count = 174,583
Divided by 50 = 3,492
SELECT WHERE Transaction Record number is one of...
3,492
6,984
10,476
13,968
17,460
20,952
24,444
27,936
31,428
34,920...etc
-------------------
Is that the best way to do a RANDOM count? And if so, what is the correct Crystal Syntax to implement that logic?
Thanks in advance...
I know this question has been answered before, but I am having all kinds of trouble accessing old "searched" posts with the new look Tek-Tips.
What I am trying to do is find the most efficent way of selecting 50 (fifty) random records from an ever growing Transaction table.
My guess is that we could take the ever changing total TRANSACTION record count divide it by 50 - and use that result (integer) as the increment for each of the records in the SELECT statement.
-------------------
eg. Total TRANSACTION record count = 174,583
Divided by 50 = 3,492
SELECT WHERE Transaction Record number is one of...
3,492
6,984
10,476
13,968
17,460
20,952
24,444
27,936
31,428
34,920...etc
-------------------
Is that the best way to do a RANDOM count? And if so, what is the correct Crystal Syntax to implement that logic?
Thanks in advance...