TheStriker
Registered User.
- Local time
- Today, 15:41
- Joined
- Jan 5, 2004
- Messages
- 17
Complex Query Problem (Brainteaser)
Happy Friday,
I have a SELECT query consisting of 5 tables (i.e. Comments, Users, ActionType, IssueType, ContactType). The main table 'Comments' is on the MANY side of a one-to-many relationship with the other tables with the following fields and relationships:
Field Many Side ----------------------------------------------------------- Table One Side
CommentID (Primary Key)
SiteID Number
Comment Text
ContactTypeID Number <--------------------------------------------------- ContactType
IssueTypeID Number <----------------------------------------------------- IssueType
ActionTypeID Number <---------------------------------------------------- ActionType
UserID Text <-------------------------------------------------------------- Users
dteCreatedOn Date/Time
I am trying to find a way to join the tables in a way that would only update the Comments table and not the other tables whenever the user adds information in the comments table. Is there a way to accomplish this? Let me know if you need more info. Thanks in advance.
TheStriker
Happy Friday,
I have a SELECT query consisting of 5 tables (i.e. Comments, Users, ActionType, IssueType, ContactType). The main table 'Comments' is on the MANY side of a one-to-many relationship with the other tables with the following fields and relationships:
Field Many Side ----------------------------------------------------------- Table One Side
CommentID (Primary Key)
SiteID Number
Comment Text
ContactTypeID Number <--------------------------------------------------- ContactType
IssueTypeID Number <----------------------------------------------------- IssueType
ActionTypeID Number <---------------------------------------------------- ActionType
UserID Text <-------------------------------------------------------------- Users
dteCreatedOn Date/Time
I am trying to find a way to join the tables in a way that would only update the Comments table and not the other tables whenever the user adds information in the comments table. Is there a way to accomplish this? Let me know if you need more info. Thanks in advance.
TheStriker