I’m trying to match comments to resources in different tables.
Each comment has a resource_type and resource_id
The resource type is the name of table that the resource is part of, and the id is the id from that table.
r937 it is interesting to hear your recommendation, but honestly it sounds like half dozen of one, six dozen of the other. I don’t see a benefit of having 3 tables containing basically identical information over writing the outer join query. Which I got working by the way …Thanks!
Oh, I probably wasn’t clear enough for you to answer that. This is comments like on a blog where members can comment on documents, articles, etc… So there needs to be support for multiple comments with different authors, dates, etc…