Is it possible to create a custom query to actually append related records to a parent record for searching.
If have a construction_data table and a project_details table.
construction_data table
construction_data_id INT 10 autoincrementing. Primary
city varchar 30
project varchar 100
project_details table
construction_data_id INT 10
project_detail_id INT 10 autoincrementing Primary.
description text
There are of course other fields in both tables. Just trying to keep it simple.
My customer wants to be able to use the search function on the construction_data list page ( and the advanced search page ) to search the fields on the construction_data record AND the description field on the related project details records. Return all construction data records with a match in either record set.
I have tried modifying the construction data table query to join the project details to the construction data, BUT as expected I end up with a row each for each construction record that has project_details related in my construction data list page. I tried a group by, works for NOT duplicating the construction data records, but it screws up the Records Found count etc etc.
Is there a query that I can actually append the project_details records to the construction data record and be able to search the appended data as well.
Help would be greatly appreciated, any suggested websites for info would be great.
Version 3, but I believe the custom query stuff should be the same)