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 742769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:47:08+00:00 2026-05-14T08:47:08+00:00

I would love to here your ideas on this. I am creating a table

  • 0

I would love to here your ideas on this. I am creating a table which will store weekly shift hours for employees.

for example: Jon works 9:00am to 9:00pm Monday , 10:00 AM to 5:00PM on Tuesday, etc.

How should I go on designing this table? I thought of 2 options.

(1) For every record I can have two lines for AM and PM and have columns for Monday to Sunday

ID | ParentID | Type | Monday | Tuseday ......Sunday
-----------------------------------------------------------------
1  | 1        | AM  | 9:00    | 9:00          12:00
2  | 1        | PM  | 9:00    | 5:00          02:00
3  | 2        | AM  | 10:00   | 
4  | 2        | PM  | 10:00   |

(2) I can save Preference in XML format in one column

ID | Info
-------------------------------------------------------------------
1  | |Hours|Monday|9:00 AM - 9:00PM|Monday|Tuseday........|Hours

Any better ideas ?

Thanks

  • 1 1 Answer
  • 2 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-14T08:47:09+00:00Added an answer on May 14, 2026 at 8:47 am

    Typically, if I was to design the database I would decide on wether the information is purely stored in the database for use in the application, or would there be queries written against this data.

    I have found that storing XML data is a nice way of storing application data, that will be used by the application.

    When I know that there will be queries written to these fields, it is more cumbersome using XML, So then I would rather use a normal table structure.

    So, it would depend on what the use of this data will be, and if you intend on writing queries, creating reports from these fields.

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

Sidebar

Related Questions

Ok here's a little problem I would love to get some help on. I
I would love to brainstorm with you guys on how to program this game
I would love to be able to have a common set of Classes in
I just started getting into BizTalk at work and would love to keep using
We're about to build a Blackberry application but would love some input on whether
What is an elegant way to sort objects in PHP? I would love to
So I'm getting really sick of E*TRADE and, being a developer, would love to
I would really love to push for TDD development inside the shop I'm working
I would actually love to have an AlternatingItemTemplate on a GridView, but all it
What would be the best way to bring people back to their first love,

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.