Hello All! I have a rather abstract question for some genius out
there to answer. I want to integrate communication tracking, for
customer relations, into an existing Access DB. What I was going for
is this...
tblCommunications trxCommunicationThreads
----------------- -----------------------
CommunicationID (PK) CommID1 (FK1)(PK)
ContactID (FK from contact table) CommID2 (FK2)(PK)
Content (text)
Date
Both CommID(s) in trxCommunicationThreads will reference a record in
tblCommunications. The end goal is to be able to store, track, and
display entire communication threads and the contacts that the
communications are from, kind of what you would see right here in
Google except not as robust. When a contact posts a follow-up to
communication1, the follow-up communication, communication2, will be
added to tblCommunications as a new record and a relationship between
communications 1 and 2 will be recorded in trxCommunicationThreads.
The problem is querying these tables in such a way where it will
display all related threads. The first layer is easy of course (i.e.
the first follow-up to an original communication), but it's the
follow-ups to the follow-ups that I can't quite figure out because it
would require some sort of recursive lookup. Is there a way to write
a recursive query? I can crunch through the trx table and create
thread relationships between communications with code, of course, but
it just seems like there should be a more direct way to do this.
I hope I am not being too elusive here. Please let me know if you
need further detail; although, it's hard to put this concept into
writing using only text.
Thanks to anyone that has any ideas. I have some thoughts of my own
but I thought I'd see what the rest of the community has to say about
this sort of thing before I got heavy into building it.
Bryan 3 1947
Hi,
I don't think you can make a single query who will return the full thread of
messages.
Instead, I'll suggest you another approach:
Create a temporary table and populate it with all the messages.
This can be done with VBA (creating the temp table, and populate it with the
communications messages, and deleting the table when is no necessary to
display the thread). The table can be created into a external MDB, created
also "on the fly" or on a "per session" basis (to not bloat your main
database with deleted tables).
Another approach, which will allow you to get all messages from a
communication with a query will involve a different data structure.
You'll need to have a threads table (you'll add there a record for each new
communication thread started). Then for each message it will have two
foreign keys: Thread ID and ParentMessageID. Also you can assign message
order ID for each message in the thread (actually this can be a timestamp
field), and with a single query you'll be able to retrieve all messages from
a given thread.
If you need any more help on this, you can contact me back.
Regards,
Bogdan Zamfir
____________________________
Independent Consultant
"Bryan Christopher" <bh*****@medlink.com> wrote in message
news:d7*************************@posting.google.co m... Hello All! I have a rather abstract question for some genius out there to answer. I want to integrate communication tracking, for customer relations, into an existing Access DB. What I was going for is this...
tblCommunications trxCommunicationThreads ----------------- ----------------------- CommunicationID (PK) CommID1 (FK1)(PK) ContactID (FK from contact table) CommID2 (FK2)(PK) Content (text) Date
Both CommID(s) in trxCommunicationThreads will reference a record in tblCommunications. The end goal is to be able to store, track, and display entire communication threads and the contacts that the communications are from, kind of what you would see right here in Google except not as robust. When a contact posts a follow-up to communication1, the follow-up communication, communication2, will be added to tblCommunications as a new record and a relationship between communications 1 and 2 will be recorded in trxCommunicationThreads.
The problem is querying these tables in such a way where it will display all related threads. The first layer is easy of course (i.e. the first follow-up to an original communication), but it's the follow-ups to the follow-ups that I can't quite figure out because it would require some sort of recursive lookup. Is there a way to write a recursive query? I can crunch through the trx table and create thread relationships between communications with code, of course, but it just seems like there should be a more direct way to do this.
I hope I am not being too elusive here. Please let me know if you need further detail; although, it's hard to put this concept into writing using only text.
Thanks to anyone that has any ideas. I have some thoughts of my own but I thought I'd see what the rest of the community has to say about this sort of thing before I got heavy into building it.
Bryan
Bryan
Using 'nested set theory', (a googles of 'Joe Celko' will explain the
model), I've emailed you a small mdb that might be of help bh*****@medlink.com (Bryan Christopher) wrote in message news:<d7*************************@posting.google.c om>... Hello All! I have a rather abstract question for some genius out there to answer. I want to integrate communication tracking, for customer relations, into an existing Access DB. What I was going for is this...
tblCommunications trxCommunicationThreads ----------------- ----------------------- CommunicationID (PK) CommID1 (FK1)(PK) ContactID (FK from contact table) CommID2 (FK2)(PK) Content (text) Date
Both CommID(s) in trxCommunicationThreads will reference a record in tblCommunications. The end goal is to be able to store, track, and display entire communication threads and the contacts that the communications are from, kind of what you would see right here in Google except not as robust. When a contact posts a follow-up to communication1, the follow-up communication, communication2, will be added to tblCommunications as a new record and a relationship between communications 1 and 2 will be recorded in trxCommunicationThreads.
The problem is querying these tables in such a way where it will display all related threads. The first layer is easy of course (i.e. the first follow-up to an original communication), but it's the follow-ups to the follow-ups that I can't quite figure out because it would require some sort of recursive lookup. Is there a way to write a recursive query? I can crunch through the trx table and create thread relationships between communications with code, of course, but it just seems like there should be a more direct way to do this.
I hope I am not being too elusive here. Please let me know if you need further detail; although, it's hard to put this concept into writing using only text.
Thanks to anyone that has any ideas. I have some thoughts of my own but I thought I'd see what the rest of the community has to say about this sort of thing before I got heavy into building it.
Bryan
Thank you, everyone, for your input. I have a great idea of what I
will do now. If anyone needs anything, ya'll know how to contact me.
Thanks again,
Bryan le*********@natpro.com (Roger) wrote in message news:<8c**************************@posting.google. com>... Bryan Using 'nested set theory', (a googles of 'Joe Celko' will explain the model), I've emailed you a small mdb that might be of help
bh*****@medlink.com (Bryan Christopher) wrote in message news:<d7*************************@posting.google.c om>... Hello All! I have a rather abstract question for some genius out there to answer. I want to integrate communication tracking, for customer relations, into an existing Access DB. What I was going for is this...
tblCommunications trxCommunicationThreads ----------------- ----------------------- CommunicationID (PK) CommID1 (FK1)(PK) ContactID (FK from contact table) CommID2 (FK2)(PK) Content (text) Date
Both CommID(s) in trxCommunicationThreads will reference a record in tblCommunications. The end goal is to be able to store, track, and display entire communication threads and the contacts that the communications are from, kind of what you would see right here in Google except not as robust. When a contact posts a follow-up to communication1, the follow-up communication, communication2, will be added to tblCommunications as a new record and a relationship between communications 1 and 2 will be recorded in trxCommunicationThreads.
The problem is querying these tables in such a way where it will display all related threads. The first layer is easy of course (i.e. the first follow-up to an original communication), but it's the follow-ups to the follow-ups that I can't quite figure out because it would require some sort of recursive lookup. Is there a way to write a recursive query? I can crunch through the trx table and create thread relationships between communications with code, of course, but it just seems like there should be a more direct way to do this.
I hope I am not being too elusive here. Please let me know if you need further detail; although, it's hard to put this concept into writing using only text.
Thanks to anyone that has any ideas. I have some thoughts of my own but I thought I'd see what the rest of the community has to say about this sort of thing before I got heavy into building it.
Bryan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ayende Rahien |
last post by:
Is it possible to use events as a communication mechanism between threads?
|
by: Noel |
last post by:
Hi,
I am a tad confused about if there are any benefits from using
asynchronous vs synchronous network communication.
As my example, I have been writing a dns lookup stack with a network...
|
by: Emmanuel Charruau |
last post by:
Hi,
I am looking for a class or any information which would allow me to
make communicate mini-module in c++. I have been looking
on the net for some examples of such implementation, but I did...
|
by: mareal |
last post by:
I am using the System.Diagnostics.Process class in order to loop thru all the
processes running. Within that loop I am looking for the process name
“aspnet_wp” in order to get the process ID....
|
by: dast |
last post by:
Hi,
I'm having trouble letting my background thread tell my main thread what to
do.
I'm trying to tell my main thread to open a form, but when my background
thread ends, the form that I...
|
by: alen.petrol |
last post by:
Hi all
i got an asignment where is should simulate 1000 clients connecting to
a server via TCP, and each client has it's own sequence of data
exchanged so i have to have 1000 threads, so my...
|
by: Roodie |
last post by:
Hello,
I have a quite specific problem, and after half a day spent with
Google, still no solid answer.
The task:
I have to write a C# class Library ( DLL ) to handle TCP socket...
|
by: ne.seri |
last post by:
In short, I'm building a kind of server which is supposed to handle
open connections with clients. E.g. client connects to the server, the
connection stays open, client sends a request to the...
|
by: mastermagrath |
last post by:
Hi all,
I recently finished a small project using perl and tk/tcl which caused
me several headaches. I have now decided to have a go at VB .net and
thought a good place to start would be...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |