using a command sql function to create subroutine to populate the report. Pulling from a large table within an oracle dbase with many different record types. PK is sample_number but select criteria is on something else. Recordset comes from throughout the table and is not sequential in its entry.
Want the last five entries
Tried
select sample_number from sample
where description = 'WiTower6'
order by sample_number desc
limit 5
but it does not like the code
anyone help with this method or perhaps a better way please?
Regards
Mike
Want the last five entries
Tried
select sample_number from sample
where description = 'WiTower6'
order by sample_number desc
limit 5
but it does not like the code
anyone help with this method or perhaps a better way please?
Regards
Mike