Using Data Report I need to build a report
Where DataEnvironment1.command1 has the following sql statement
select a.br_code, b.br_name, a.status, count(*) Total from emp_mast a, branch b where a.br_code = b.br_code
group by a.status, a.br_code, b.br_name
The entries retrieved will be as follows:
Br_code br_name Status Total
X abc Working 20
X abc On Leave 5
X abc Inactive 2
Y pqr Working 15
Y pqr On Leave 3
Y pqr Inactive 0
Z lmn Working 25
Z lmn On Leave 8
Z lmn Inactive 2
I need to display report which should be as follows:
Br_code br_name Working On Leave Inactive
X abc 20 5 2
Y pqr 15 3 0
Z lmn 25 8 2
Total 60 16 4
The field Status has 3 type of entries – Working, On Leave & Inactive
Kindly help
Where DataEnvironment1.command1 has the following sql statement
select a.br_code, b.br_name, a.status, count(*) Total from emp_mast a, branch b where a.br_code = b.br_code
group by a.status, a.br_code, b.br_name
The entries retrieved will be as follows:
Br_code br_name Status Total
X abc Working 20
X abc On Leave 5
X abc Inactive 2
Y pqr Working 15
Y pqr On Leave 3
Y pqr Inactive 0
Z lmn Working 25
Z lmn On Leave 8
Z lmn Inactive 2
I need to display report which should be as follows:
Br_code br_name Working On Leave Inactive
X abc 20 5 2
Y pqr 15 3 0
Z lmn 25 8 2
Total 60 16 4
The field Status has 3 type of entries – Working, On Leave & Inactive
Kindly help