Count of records in a table

Posted by durgam4 on 12-Apr-2015 22:34

Hello,

I am new to Progress database. Can anyone please tell me how to find the number of records in a table?

select count(*) from table;

All Replies

Posted by Dileep Dasa on 12-Apr-2015 22:39
Posted by vgandhe on 12-Apr-2015 23:25

Correct.  

Seclect count(*) from table;

Gives the total number of records in the table.

Posted by Rob Fitzpatrick on 13-Apr-2015 00:28

You can count records programmatically via ABL but it will be slow for large tables.  I find it is faster to do this via SQL, but you must have a SQL broker configured for your database.

You can also run a db analysis or table analysis report from the command line.  Look up the proutil dbanalys qualifier and tabanalys qualifier in the Reference section of the Database Administration manual.  These can be run for the entire database or for the contents of a single storage area.  The resulting report provides a list of tables and their record counts, among many other things.  Table analysis does less than database analysis so it should run faster.

This thread is closed