[HELP]: Problem using views to drive cursors
Date: Tue, 12 Jul 1994 18:10:54 GMT
Message-ID: <1994Jul12.181054.21783_at_KYnug.org>
Consider this a vehicle licensing application where you have motorists with fname, lname, birthdate, social security and a primary key generated by the system. Someone now submits a data file with vehicle registration information along with the applicant information. You want to create a new master record if the person is not found in your database and you want to add the registration information to the correct applicant in your system finds the applicant.
I have a view which I use to drive a cursor. This view merges our applicants table with a submission table to see if the applicant being submitted is already in our database. An outer join is performed in the view to revel the primary key of the applicant in our database and of course this field is NULL if the applicant is not found in our database.
PROBLEM: The problem I am having is when multiple licenses are submitted on the same applicant, creating duplicate master records.
Suggestions?
-- Neil Greene benchMark Developments, Inc. [NeXT VAR] 2040 Regency Road, Suite C Lexington, KY 40503 Phone: 606-231-6599 / Fax: 606-254-4864Received on Tue Jul 12 1994 - 20:10:54 CEST