Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:27:49+00:00 2026-05-29T13:27:49+00:00

I am trying to developing a projects/employees/hours application and need a database design. I

  • 0

I am trying to developing a projects/employees/hours application and need a database design. I haven’t done it for a while so I am seeking good advises.

Basically, the application is to track how many hours the employees have worked on the projects. The employees have to log in to the system everyday to put the hours they spend on the projects they work on. By the end of the week, they submit the timesheet and show the total hours they have worked on every projects.

For example, employee A works 3 hours on project A on 2/11/12 and employee B works 2 hours on project A and 1 hour on project B on 2/9/12. The manager can see the the 2 employees have spend 5 hours on project A and 1 hour on project B when they log in. The manage can also see how many hours the employee B has spend on all the projects (A and B). The database tables I have in mind are

EMPLOYEES
id/name/password/manager_privi

PROJECTS
id/project_name/client/hours/date

HOURS
employee_id/project_id/date

Is this enough for what I need? Thanks for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:27:50+00:00Added an answer on May 29, 2026 at 1:27 pm

    I’m a bit confused about the hours and date columns you assigned in the question, so I’ll be using more specific names. This is how I see it.

    PK is between quotes

    CLIENTS("id", name)
    

    It was referenced and was missing 🙂

    EMPLOYEES("id", name, password, manager_privi)
    

    Not sure what manager_privi is… may it be the employee’s manager?

    PROJECTS("id", project_name, client_id, start_date, end_date)
    

    Splitted the date in two in order not to mix with the worked date

    HOURS("employee_id, project_id, worked_date", hours)
    

    Note it is a compound key. You might also have to create indexes on project_id and worked_date to speed up things, but that’s not related to it’s design
    Note that an employee can not have 2 records for the same date to the same project. In this case you’ll have to UPDATE the hours amount if the employee tries to add more hours for same date and project

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iOS application, and trying to zip the file I have
I'm developing a Windows Phone 7 application and I'm trying to change the look
I'm developing WinForms application using VS2010. I have about 15 projects in the solution.
I am developing a small web app project (ColdFusion) and I am trying to
One of the patterns that I frequently run across when developing is trying to
Developing a website and just trying to get back into the swing of (clever)
I was developing a small function when trying to run an enumerator across a
I am trying to get started developing using the .NET Micro Framework but appear
Developing server side code i finally got my eyes X-crossed trying to write -
We're developing an EPiServer-based website and trying to deploy our latest build onto a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.