I have to select the top 25 records from a table according to the column Num.
Num
There are two issues. First, the table is not sorted by Num.
In Firebird,
select first 25 from your_table order by whatever