Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Schema: Customer holding record question

 
Mark O' Sullivan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Very sorry second post today. in my database schema, theirs a field called "customer holding this record" and it's description is
"The id value (an 8 digit number) of the customer who has booked this room. If this field is all blanks, the record is available for sale." The question I'm wondering though, is if a room becomes booked using this field, well, how does it become unbooked again? There doesn't seem anyway of removing this customer.
Thanks.
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if "unbooking" is necessary. I write to the field when it is booked/reserved and that's the end of it. People have implemented it, but it is beyond the scope of this assignment, so you won't gain anything by doing it. Hope this helps.
 
Mark O' Sullivan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers,
Thanks very much Anne. Good luck with the submission.
 
Roel De Nijs
Sheriff
Posts: 10594
143
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

I can confirm Anne's remark: unbooking not in scope of this assignment. You may implement it, but it certainly isn't a must (and you won't get extra points for doing it. in fact you may only lose some points if it has a flaw).

Kind regards,
Roel
 
Chris Bicnal
Ranch Hand
Posts: 96
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All very true responses, although I coded an un-book in my application because;

- the application is pretty much unusable without it
- it's very simple (it's basically the book operation with a blank customer number)

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic