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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:01:10+00:00 2026-06-15T17:01:10+00:00

Using the following database schema I’m trying to achieve this… Each store is on

  • 0

Using the following database schema I’m trying to achieve this…

Each store is on 1 Tariff that has different costs based on the day on the week.

Store 1 is on the low tariff
Monday – Sat – $1.00
Sunday – $0.50

Store 2 is on high tariff
Monday – Fri – $2.00
Sat – $1.00
Sunday – $0.50

There could be hundreds of different variations of these tariffs.

database schema

Does the schema above achieve this? Recommendations?

Thanks

  • 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-15T17:01:10+00:00Added an answer on June 15, 2026 at 5:01 pm

    The most straightforward tariff table implementation would look like this:

    Tariff
    ------
    Store ID
    Sunday Tariff
    Monday Tariff
    Tuesday Tariff
    Wednesday Tariff
    Thursday Tariff
    Friday Tariff
    Saturday Tariff
    

    Your other alternative looks like this:

    Tariff
    ------
    Store ID
    Day of Week ID
    Tariff
    

    The primary key is the Store ID and Day of Week ID.

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

Sidebar

Related Questions

I am currently trying to create the following database schema with SQLAlchemy (using ext.declarative):
I am using the following line to store a string in database but am
I am trying to create dynamic menus from the database using the following example
I create a custom schema in my DB2 database using the following command: db2
I have created Rails database using the following schema: ActiveRecord::Schema.define(:version => 20090807141407) do create_table
I'm using the following code to create a database schema using the .install file
I am creating a database by using following schema ...... using microsoft sql server....
How could the following database schema be drawn using E/R diagrams? (A sketch or
I am building a mysql based chat application. My database schema has the following
I am using following datatype in my database . but I got exception as

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.