I'm working on a database for movie awards and through suggestions rec'd in the past I've normalized data into multiple tables like Categories (Cat_ID,Cat_Name), Movies (Mov_ID,Mov_Name),Individuals (Ind_ID, First_Name, Last_Name) and then the nominations like Nominations (Cat_ID,Mov_ID,Ind_ID,Year,Status)
Having mapped all that out I'm trying to wrap my head around the most efficient way to code the database (odbc to a MS SQL 7) input form.
Let's say I have to enter a nomination as follows:
Cat_ID
Mov_ID
Year
Status
Ind_ID(s) (possibility of more than one person in categories like art direction etc.)
Where it gets confusing for me is in the "Does this person/movie already exist in the database?" area.
If the person/title already exists I just grab their name/title ID and insert it into the nomination row. If they don't exist I have to insert their name/title into the appropriate title/person table, grab the new ID number and then insert that into the nomination table.
Being relatively new to this, I have some ideas, but any comments or pointers to articles to help me code this input form efficiently would be most appreciated.