Results 1 to 40 of 49

Thread: Please please help

Hybrid View

  1. #1
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: Please please help

    Nice one namaroller. I was amazed to see so much interdependancy in the database. A question for you If I may. In what way are relationships within the database usefull as far as the application is concerned. Are they seen as hard coded inner joins at the SQL level?
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: Please please help

    Relationships in the database are firstly important for the integrity of the database itself - you have to visualize and enforce these even if you never connected an application to it. I enforced a few cascading changes and deletes too(looking back this morning, there should have been a cascading update rule between patients and the appt table, and the doctor and appointment table, but oh well )

    As far as the application though - if you send a sql statement to delete an appointment, then all details of that appointment should be removed - this includes any ailments the patient described over the phone before the appointment because these were not verified in person.

    End result, once you delete the appointment, any related records will also get deleted by the database automatically, so the application does not have to look for related records manually. (So a sql statement from an application 'Delete from Appointment where patientno=12 and apptdate=12/12/2004' will remove the appointment AND any entries from the ailments table, because of its relationship. You would not have to issue another command 'Delete From Ailments Where fkAppointmentNo = pkAppointmentNo Inner Join On Appointment....

    Or, deleting a patient because they became deceased, you may want to remove any of their patient history-so all appointments and his related ailments will be removed)

    Since you brought it up though, they would require an inner join to retrieve the ailments to compose a patient history (since they would have to first find all appointments for a particular patient, and inner join those on any ailments with a matching appointment id)

    I wonder how far they got...
    Last edited by nemaroller; Dec 9th, 2004 at 09:58 AM.

  3. #3
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: Please please help

    I was wondering that also, but given that they only joined up to sort out this project at such a late stage they won't be VB die hards so chances are they won't be back.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Please please help

    prolly turned something in, even if it wasn't right. teachers don't try to debug things, and like to give partial credit to things that they recognize as being correct. maybe they were able to slide through. i don't think that they finished it, though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width