• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reserved Seat Information

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers

I have a question about Reserved seat information. Where this information can be stored for a given flight ?

For any given flight there could be several seats and there should be some information about the status of the seats on that flight for a given date .

Does this information belogs to Segment table ?
I don't think so as segment table is very specific to segment .

does this belongs to flight table ?
Depends how the flight table is designed . If the flight table is independent of the date then it cannot have seats information for a particular date

Does it belong to seat table ?
Possible . But there could be several records . seat table could have information about each seat for each flight for a given date.

So if a given flight with 200 seats fly on each day of the year then seat table could have Information about each seat .

For optimization this information can be stored as a blob containig list of available seats.

Any thoughts ?

Thanks
Sangita
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sangita,
When the tickets of a given flight(one take off and land) on the list for sale, we need a Flight object. For constrcting the object, we need info like segment, datetime, equipmentId(same 737 may have different setting) etc. the seat set decided by equipmentId. the status of a seat could be changed before it take off. obviously, the object nedd to be persisted to DB.
 
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic