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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:58:43+00:00 2026-06-14T11:58:43+00:00

I have a table to keep flights and i want to keep which days

  • 0

I have a table to keep flights and i want to keep which days of the week this flight operates.
There is no need for date for this since i only need day names.

Firstly i thought to have a column in the flight table that will keep a single string with the day names inside and use my application logic to unravel the information.
This seems ok since the only operation on the days will be to retrieve them.

The thing is, i don’t find this is “clean” enough so i thought of making a separate table to keep all 7 day names and a many to many (auto generated) table to keep the flight_id and day_id.

Still though, there are only 7 set values on days table and i am not so sure for the second approach either.

What i would like is some other opinions on how to handle this.

  • A flight can operate on many different days of a week
  • Only day names are needed – so, 7 in total.

Sorry for bad English and if this is a trivial question for some. I am not too experienced in both English language and databases.

  • 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-14T11:58:45+00:00Added an answer on June 14, 2026 at 11:58 am

    Some databases support arrays. PostgreSQL for example supports arrays.

    You could store the days in an array of integers and use a function to tanslate integers to day names. You could also use an array of a custom enum type (PostgreSQL Example).

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

Sidebar

Related Questions

I have a table transaction which has duplicates. i want to keep the record
I have a table (Logs) in which I keep logs of what happens on
I have a table which need to persist some user actions in sequence. I
I have this table in which I am able to generate rows for through
I have a table which for other reasons I prefer to keep table-collapse: separate.
I have a table of posts and I want to keep track of the
I have a table in which i keep different meters (water meter, electricity meter)
I have a table that I keep track of fees for a specific item.
I have a table of housing listings. I would like to keep a maximum
I have table with around 70 000 rows. There is 6000 rows that i

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.