Good morning,
I have a prospective client that is interested in having a User Defined Function written that will prevent duplicated data from being appended to his database.
The option I am proposing is that each of the new rows is appended to the master database where the UDF returns false.
The UDF, each interation, will go through each row in the master database and apply another UDF to field in question. If the result is 'false', the outer UDF will return false to query.
The database is quite large and I am keen to ensure that the solution I offer is as efficient as possible. Is there a better way to achieve this?