Thanks for the reply but I am not sure what you mean. For example inserting any numeric character would pull from the fruit_ids table and entering 'banana' would pull a result from the fruit_names table. This exercise is very hypothetical so there is no actual DB that I am querying from as of yet. I am just trying to create a blueprint of what the code would possibly look like. Would it be possible to continue along just taking some of this for face value? upon deletion, I am only attempting to return a result which indicates the fruit name or fruit ID was removed from the DB.