chrispchenry
Programmer
Hello everyone,
Got my third, and hopefully final question and I'll be done this program.
Everytime someone shows up late, a record is made in the database with the Time, Date and Employee number. I've been using crystal reports 4.0 I think. I can report lates for each employee, as well as every late recorded into the system. Currently, there are about 630 of them.
What kinda of SQL query would I use to return the records that have a reoccuring value (the employee number) equal/more than a number?
So, if Joe Blow showed up late 5 times, and John Q showed up late 8 times, the respective IDs are stored. How would I search for people who've showed up late 4 times, get there IDs returned and print a report of ALL the lates, showing all the infractions?
Originally I was going to add an extra field into the Employee Info table with a record to store the number of lates. It'd be updated each time they showed up late.
Got my third, and hopefully final question and I'll be done this program.
Everytime someone shows up late, a record is made in the database with the Time, Date and Employee number. I've been using crystal reports 4.0 I think. I can report lates for each employee, as well as every late recorded into the system. Currently, there are about 630 of them.
What kinda of SQL query would I use to return the records that have a reoccuring value (the employee number) equal/more than a number?
So, if Joe Blow showed up late 5 times, and John Q showed up late 8 times, the respective IDs are stored. How would I search for people who've showed up late 4 times, get there IDs returned and print a report of ALL the lates, showing all the infractions?
Originally I was going to add an extra field into the Employee Info table with a record to store the number of lates. It'd be updated each time they showed up late.