Count Records in Form?
Please consider simple example of developer/2000 Form6i and emp table.
I want to display record according to the below sample. Can any one help how it is possible count(*) in Form.
# of emp 3
**** I know how to check in Reports but how it is possible in FORM, no idea.
SQL> select deptno, count(*) no_of_emp from emp
group by deptno;
Thanks in advance.
Simplest way to do that is:
1) dept is a base table for a block
(with select ... from dept ...)
2) in this (dept) block u have to create not database field :cnt for example.
3) create POST-QUERY trigger for block dept,
select count(*) into :dept.cnt from emp where deptno = :dept.deptno;
that is it.
Click Here to Expand Forum to Full Width