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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:00:10+00:00 2026-05-25T03:00:10+00:00

I’m working on a system where people can book tickets and certain passes for

  • 0

I’m working on a system where people can book tickets and certain passes for events (car passes, etc.).

An event takes place on one or more days. The passes can be linked to multiple events. They can have a default price and pass per ticket ratio (so if you buy, say, 3 tickets you get 1 pass free). These default parameters should be able to be changed on a per event basis, though. When linking a pass to an event, I want to be able to link the pass to certain days of the event aswell. I’m kind of stuck here, my original database design seems to be flawed. Here’s what I currently have:

tblPass
    passID
    name
    price
    ticketratio

tblEvent_pass
    passID
    eventID
    price
    ticketratio

then finally, a table where the reserved passes get put in, after the order has been made:

tblEvent_pass_reservation
    reservationID
    passID
    day
    totalPaid
    totalFree

However, with this setup, I seem to keep running into trouble. Could someone have a look here and tell me what I’m doing wrong? I’ll gladly answer any questions you have about the concept of the passes. Thanks a bunch.

  • 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-05-25T03:00:10+00:00Added an answer on May 25, 2026 at 3:00 am

    I think I got your problem right.
    Well, in my way of view, your problem is that your are associating a pass to an event instead of an event-day table.

    Look at the following structure:

    -tblPass (passID, …)
    -tblEvent (eventID, description, …)
    -tblEventDay(eventDayID,eventID, day (date), …)

    Now you need to link your event days with the pass table so we create another eventday-pass (N to N) connection:

    tblEventDay_Pass(eventDayID, passID, pricePaid, … )

    If you consider the “ticket” as your base unit you’ll have to link tickets to event days, like “a closed event can only afford 15.000 people so you will only have 15.000 tickets”. If so, the tblEventDay_Pass will get a ticketID which will be the same ID as the available tickets for the event. You’ll need to create another Ticket table and link it to the events table.

    Something like this:
    https://i.stack.imgur.com/EUrAM.jpg

    Hope it helps!:)

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

Sidebar

Related Questions

I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.