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

  • SEARCH
  • Home
  • 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 8919339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:59:45+00:00 2026-06-15T05:59:45+00:00

I am relatively new to database design so I am still learning a lot.

  • 0

I am relatively new to database design so I am still learning a lot. What I am working on is an online time card clock. I am just messing around with it to learn more. My full time job is working for my uncle operating heavy equipment and he has expressed some headaches to me. When going over time cards several employees hand writing is hard to read, several employees don’t add the hours correctly so he always has to double check their math, plus some people don’t hand in the time sheets on time. Most of the employees have smart phones so my solution is to just make a simple website that has a button for “Clocking in” and “Clocking out” it would also contain several text fields to describe what the employee operated that day and the job site they were on. All of this will be added to a database that will be emailed to the boss at the end of the work week. My question is what would be the best way to setup a database for this? Should I add a separate table for each employee or keep it all in one table? There will be about 20 employees that will use the site. Thanks in advance for any 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-06-15T05:59:47+00:00Added an answer on June 15, 2026 at 5:59 am

    General database principles:

    Think about object orientation. Classes of objects.

    • An “Employee” is one such class, therefore you should have one table that stores employees.
    • An “Event” such as clocking in or clocking out is a general class of two specific cases, e.g. ClockIn and ClockOut.
      • You could consider one table to store an Event with a field for the date and time of the event, one field for the employee (a foreign key), one field indicating whether it’s in or out
      • You could alternatively consider one table for ClockIn, one for ClockOut, but this may not be advantageous depending on how you wish to scan the data later when printing reports. I’d personally recommend against this approach, just point out that it’s an option.
    • Ideally, every table should have a numeric primary key
      • Think of key-value pairs
      • Employee
        • 1 Jon Doe
        • 2 Juan Gomez
        • etc…
      • Event
        • 1 2012-11-29 08:59 Clock In 2
        • This translates to Juan Gomez clocking in today just before 9am
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm relatively new to the PHP OO concept. I've been messing around with the
As this question is sure to reveal, I'm relatively new to database design. Please
I am relatively new to database design. I have a database which has the
Relatively new to rails, I'm working on a simple rails app for a few
Relatively new to WinForms but I'm working on a small business app. Anyway, where
I'm relatively new to XCode and I m working on photo collage App ,
I'm relatively new to X Code and I m working on photo collage App
I'm relatively new to Java and I'm still trying to understand the fundamentals. I
I am relatively new to .Net and the database side of it in particular.
I am relatively new to Perl.I have been trying to insert data to database

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.