This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Question about DB and booking flights

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a question regarding the Database.
In a "real world" application, if I were to book flights, I would need a second database to hold information such as a passenger's name / address / etc. This information is obviously not in the db.db file. So, should I create a *NEW* database to hold customer information? Or is that going way beyond the scope of the assignment?
In addition, the file db.db only has a field "available seats". Is that the number of seats left, or the total allowable? Don't we need to know the maximum number of seats available on each flight as well as the number of seats that have been booked?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think holding Passenger information is over the requirements and not needed, and available seat means how many seats are left that can be booked, you don't need to know the capacity of the flight.
Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic