Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Attendance Report Post Reply Post New Topic
Author Message
andrewsimon
Newbie
Newbie
Avatar

Joined: 28 Jun 2011
Online Status: Offline
Posts: 26
Quote andrewsimon Replybullet Topic: Attendance Report
    Posted: 05 Sep 2011 at 3:39am
Hi,
 
I have the following informations and i want to generate an attendance report per day.I will explain the concept
 
EMP Table
 
ID   NAME 
 
1     Hassan
2     Hussain
3     Hameed
4     Cruz
5     Philip
 
Transaction table
EmpID     Time
 
1             5/8/2010 8:00 AM
2             5/8/2010 9:00 AM
3             5/8/2010 10:00 AM
 
My Attendance Report should look like this
 
Date:5/8/2010
 
ID  NAME      STATUS
1     Hassan   Present
2     Hussain  Present
3     Hameed  Present
4     Cruz       Absent
5     Philip      Absent
 
How to achieve this.Any help asap is appreciated.
Thank u..
 
bbbbb
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 05 Sep 2011 at 5:56am
Try this:
 
1.  Link from your employee table to the transaction table with a left outer join.
 
2.  Group by date from the transaction table.
 
3.  For the Status column, create a formula like this:
 
If IsNull({transaction.EmpID}) then 'Absent' else 'Present'
 
-Dell
IP IP Logged
andrewsimon
Newbie
Newbie
Avatar

Joined: 28 Jun 2011
Online Status: Offline
Posts: 26
Quote andrewsimon Replybullet Posted: 05 Sep 2011 at 8:47pm
Thank you hilfy.
I tried in the same way,what you have suggested.
But the report displays only those employees, having transactions on that day.That means,the left outer join didn't work.
The report look like this,
 
ID NAME  StATUS
1   Hassan    Present
2   Hussain   Present
3   Hammed  Present
 
Thanks in advance for any help/advice you can give.


Edited by andrewsimon - 05 Sep 2011 at 8:48pm
bbbbb
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.