INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Total Hours from V_CHK_VW_HOURS

Total Hours from V_CHK_VW_HOURS

(OP)
I need the total Hours worked for an employee from V_CHK_VW_HOURS or somewhere else if I am looking in the wrong place.
I found the CHECKVIEWHOURSAMT field and the CHECKVIEWHOURSCODE and everything looked pretty easy to add and get a total.  I noticed that these fields covered our hours we put in for training and meetings and night differential but the regular hours and overtime hours are missing.  So I looked and found CHECKVIEWOTHOURS and CHECKVIEWREGHOURS.  I thought I was home free and would just add everything together but then noticed that if an employee had 3hrs of training time and 3hrs of staff meeting on the same check their regular hours and overtime hours would be listed twice. For example:

PayDate Name CVHOURSAMT CVHOURSCODE CVOTHOURS CVREGHOURS
10/2    Bob  3          M           0         9.17
10/16   Bob  1.33       M           5.75      8.92
10/16   Bob  61.92      N(night diff) 5.75    8.92

How do I add the 1.33 + 61.92 + 5.75 + 8.92 without adding the 5.75 and 8.92 twice.

I am using Report Smith.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close