• 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

Bad Data in Original Database

 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recently downloaded my assignment and wrote a small GUI piece to view the data from db.db. Four records in the database have invalid data (such as 14:75 and 11:65 as times of departure and duration). I found a few messages in this forum refering to this, and the answers seemed to be to ignore the bad data and show it in the table as is. However, the fact that there are relatively many "bad" fields tells me that I should probably be expected to do some sort of validation, although it is not explicitely mentioned in the instructions. What do you guys think?
Thanks,
Eugene.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I noticed the bad data as well. I am leaving it as is but noting the fact that it is there in my design decisions document. I am justifying leaving the data alone on the basis that it is not the function of the application to ensure data validity of existing data, only of that which the user enters through the reservation system.
I don't know if that'll fly (I'm preparing to upload later this week....whew!), but any data cleanup efforts I could think of were not very elegant and rather arbitrary.
 
Destroy anything that stands in your way. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic