8 replies
by pr.garza
by vgr2
You will need to create 3 tables,
the 1st to hold just customer data (cust_id, name, DoB, etc),
the 2nd to hold the account data (account_id, type & amount) and
the 3rd to cross reference the customer table with the account table by id (id, customer_id & account_id).
Good luck
by pr.garza
by john_wills
by pr.garza
I would simply add the Customer ID as one of the fields in the Account table, and make one of the indexes based on Customer ID, Account No. as the unique identifier. You would obviously also need an index on Account No., but I would probably make ita unique index so that Account No.'s are not duplicated.
When you run your searches, you can use either index depending on requirements. The Customer ID/Account No. index needs to be built in early as so much of the coding will rely on that indexto provide the separation between accounts preventing customers from looking at or modifying accounts that aren't theirs.
Darryl
by pr.garza
by pr.garza
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending