I have quite big problem as I have to count elements in the queue and no procedure or function, which i wrote, does this. I would be grateful if anyone could help me with this. Also I have another problem. The program for working with the queue generates only numbers which have five numerals but it doesn't generate numbers with six seven or eight numerals.

Thank you for your help,

1. what are you using to work with database?
2. post some code of what you have done
3. i'm not sure that i understand...the program is returning up to five digits and you want 7 or eight? use a variable from a larger domain(longint,etc)

best regards,