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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:59:01+00:00 2026-06-06T04:59:01+00:00

I am working on a designing a database for a multi day appointment program.

  • 0

I am working on a designing a database for a multi day appointment program. This is what I am doing. I have 40 “spots” that clients will be able to book for x amount of days. I am having troubles deciding the best way to store this information. I am considering that if a row has not been created for a “spot” on a particular day, then I would know this “spot” is free. Versus creating a row for each “spot” for everyday for maybe a year then having a boolean column if the “spot” is free. My next problem is how I am going to make a particular appointment store multiple days. I am considering have a column that would store the primary key for the day before it. If this column was empty I would know that either this appointment was for the first day of many or just a a one day appointment. This is hard to translate into words I can rephrase if needed.

  • 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-06T04:59:03+00:00Added an answer on June 6, 2026 at 4:59 am

    Since a spot must always be booked for the whole day, I’d go with the first approach, similarly to this:

    enter image description here

    The BOOKING.DAY is a date without time.

    To check if given spot is booked for the given day, simply search for the existence of the corresponding row in BOOKING. To make an appointment for multiple days, insert one row in APPOINTMENT and several corresponding rows in BOOKING.

    NOTE: This model won’t enforce the consecutiveness of the days of the same appointment. If this is important, you’ll have to enforce it through non-declarative means (e.g. triggers or at the application level).

    NOTE: If you don’t have any information associated with the appointment other than the client, you can remove the APPOINTMENT table altogether and connect the CLIENT directly to BOOKING.


    Alternative design, where BOOKING contains a period (and not just one day) can also be done, but that complicates avoiding overlapping periods (it would probably require a combination of triggers and careful locking).

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

Sidebar

Related Questions

I'm working on designing a new database that will need to handle an enormous
I have been working on designing a file server that could take the load
i am currently working on a project where i have 'units' that will have
I have a database I'm working on designing using Access 2007 and I'm wondering
I'm designing a database for internal use at my company that will store data
Hey all, have been working on designing a new database for work. They have
I'm working on designing a full-page site, which will be powered mostly with javascript
So I have been working with javascript for a website I am designing, shocker
Working on a website that has Employee and Branch entities, using a database table
I am working on designing an IT Asset database. Here I am working on

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.