If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > matching GL and Bank records (was "Some advice please")

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-05, 17:57
TenKracer TenKracer is offline
Registered User
 
Join Date: Oct 2003
Location: New York/New Zealand
Posts: 8
matching GL and Bank records (was "Some advice please")

Am I doing this the best way?

I have 2 types of records to keep track of, GL and Bank.

I have thousands of these added to the DB a day.

The records get matched to eachother in a many to many relationship. GL records can be matched to other bank or GL records and bank records can be matched to other bank or GL records.

I have the following tables...
GLMatched
BankMatched
Matched
GLUnmatched
BankUnmatched

When I first get a record it will go into the Unmatched table of its type.
At some point a user or process will find records from both sides and attempt to match them off. When this happens the records are moved to there matched table and a record is added to Matched.

Users will almost always be working with the unmatched tables but they may need to query the matched tables as well. Speed is important.

This is going to be built in MS SQL2000 from what I understand.

Any ideas suggestions or whatever would help.

Thanks,
Mike
Reply With Quote
  #2 (permalink)  
Old 02-02-05, 18:48
Vmusic Vmusic is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
Confused

Hi ,
I'm confused as to why you need 5 tables? You described 2 business entities -

1) A General Ledger Entity
2) A Bank (transaction) Entity

Then you said they related in a many to many fashion?

See attached drawing

Vmusic
Attached Images
File Type: gif Acounting101.gif (20.9 KB, 75 views)

Last edited by Vmusic; 02-02-05 at 18:52. Reason: My image didn't appear
Reply With Quote
  #3 (permalink)  
Old 02-02-05, 18:57
TenKracer TenKracer is offline
Registered User
 
Join Date: Oct 2003
Location: New York/New Zealand
Posts: 8
Hm, don't know how to see attached pic.

The reason... Here is the history
This is already an application that is in place. The thing is it is huge and slow and all the users hate me because of it.

I believe the original goal was to try to speed up the Unmatched queries. Because this is where the bulk of the user queries are it made these tables smaller by moving matched records to seperate tables.

So there is no relationship between the unmatched tables and any of the others.

The reason for the Matched table and the BankMatched and GLMatched is for the many to many matches.

I am by no means a DBA and I didn't build this. We are looking at a total replacement so if this doesn't make sense then please describe what you think should be done.

Cheers,
Mike
Reply With Quote
  #4 (permalink)  
Old 02-03-05, 03:56
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
__________________
visit: relationary
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On