1

For simplicity, my database has entities and transactions. Each transaction has a DateCreated and a foreign key to the entity. I'd like to have the ability to find entities that have had a recurring number of transactions within a close time proximity of other entities.

Simply, if entity A has had a transaction within 10 minutes of entity B, 5 different times.

The more I research on this topic, the more confused I'm becoming.

I ran through the Data Mining Algorithms and their AdventureWorks data mining tutorial. I think I need a clustering approach.

Mostly I'm looking for guidance on how this type of problem is typically approached. In the end, my goal is to allow the user to select X minutes and Y occurrences, and display the result data back to them. If I can offer any more information please let me know.

asked Mar 17, 2014 at 15:25
1
  • recommended reading: Where to start Commented Mar 17, 2014 at 15:50

1 Answer 1

1

I would treat the DateCreated column from entity A and entity B as a foreign key to another table that stores counts of A and B for those dates. You can drop the seconds for that foreign key.

You can then use that table to find all entity A records that have entity B records within X minutes of each other. That would be done by using a JOIN from the entity A table to the foreign date counts table.

Difficult to explain further without actually seeing the schema of the tables.

answered Mar 17, 2014 at 15:53
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.