MySQL Forums
Forum List  »  MySQL Workbench

Normalization or Alter table to add new fields
Posted by: Joseph Martinez
Date: January 06, 2009 01:15PM

I am having a hard time trying to figure out the correct/best way to make
this table(s) to track the progress of a juvenile once released from our
facility, ie: whether the juvenile has re-offended as a minor.

Necessary Items: (The Easy stuff)
[JuvenileID] - provided from the Juvenile Table
[ExitType] - Successful or Unsuccessful
[CloseDate] - Date the juvenile file was closed, ie, turned 18 or other

(The Hard Stuff)
If [ExitType] = "Successful",
then [Subsequent Adjudication(Reoffended)] = Yes or No.
If [SubsequentAdjudication] = Yes,
then [WhatTypeofAdjudication] = array(referred to StateLevel, NoChange, Other)
elseif [ExitType] = "Unsuccessful",
then [UnsuccessfulType] = array(Mental Health, Medical,Program Non-Compliance, Other)
end if

Do I make a new table with 5 fields or 4? Or do I add the fields to the Juvenile table? And how to make it, pardon the phrase, "Idiot-proof"?

Options: ReplyQuote


Subject
Views
Written By
Posted
Normalization or Alter table to add new fields
3346
January 06, 2009 01:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.