PC Review


Reply
Thread Tools Rate Thread

Design Confusion!

 
 
Hatman50
Guest
Posts: n/a
 
      27th Oct 2010
I have a very confusing scenario (at least it is for me) - scenario
follows:

I have three tables as follows;

tblSECURITY (as in financial stock)
SecurityID (PK Autonumber)
SecurityName (Text)
Etc…

tblACCOUNTS
AccountID (PK Autonumber)
AccountNo (Number - 9 digits)
GeoCode (Number - 3 digits)
Etc…

tblCONSTRAINTS
ConstraintID (PK Autonumber)
Constraint (Text)
Prefix (Number - 3 digits)


Here is a brief scenario;
Accounts are held by Canadian people NOT residing in Canada, and are
in either Canadian Currency or U.S. Currency. The account table also
has a GeoCode that designates where the people holding the account
actually reside.
Based on government rules, Constraints have to be placed against
Securities for specific accounts. In other words certain accounts can
not hold these securities. I want to keep track of what accounts have
what constraints put on them.
The constraints consist of certain kinds of Accounts; US dollar accts,
Canadian dollar accts, Registered accts, Non Registered accts
These types of accounts are designated by a 3 digit prefix on the
account number.
i.e. 530-xxxxx is a Canadian dollar account
531-xxxxx is a U.S. dollar account
etc…

So as an example:
Security “ABC” can not be held by Canadian Or U.S. Dollar Accounts
therefore any account that starts with 530 OR 531 must not hold “ABC”
Currently my tblConstriants consists of 4 records
CONSTRAINTID CONSTRAINT PREFIX
1 Cdn Accounts 530
2 U.S. Accounts 531
3 Registered 559
4 Non-registered 561

Within a form, Upon selecting a Security & the said Constraints, i
would do a search on the tblAccounts looking for 530* or 531* and add
each of the associated AccountID's to a forth table as follows.
I am planning to set up a forth table to hold the ScerurityID,
ConstraintID, and AccountID.
So for this example I would have a table with
SecurityID ConstraintID AccountID
1 1 55
1 2 55
1 1 56
1 2 56

Is this correct? Am I on the right path.
My apologies if the explanation seems convoluted.
Thank you very much for TRYING to understand my scenario!
Regards
BJ
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# / ASP.Net System Design Confusion FreeMinded Microsoft Dot NET 0 11th Feb 2009 09:08 PM
07 Design management confusion =?Utf-8?B?TmV0d29ya1RyYWRl?= Microsoft Access Reports 6 11th Nov 2007 01:37 PM
Table Design Confusion =?Utf-8?B?RGFiYXVt?= Microsoft Access Database Table Design 4 10th Oct 2006 04:19 PM
Web design program editions confusion Howard Microsoft Dot NET 5 25th Jun 2006 04:11 AM
Update architectural confusion: lost in the design maze r Microsoft ADO .NET 10 12th May 2004 10:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.