This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DB & Making a Booking  RSS feed

 
Sair Legge
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having read some of the other postings I'm a bit confused about the maintenance of 'available seats'. The db.db file contains the file schedule and the number of available seats however, surely you can't just decrement this seat number as it just lists the day that flight flies on and not the date of the flight.
Whilst I don't really want to maintain multiple db files I can't think how else to handle it.
Any help/thoughts??
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you just decrease the number of seats in the database. Don't try doing anything too sophisticated!
- Peter
 
Sair Legge
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oooo, life suddenly seems so much easier! Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!