Categorized column
Posted by:
lars
Date: August 21, 2004 02:16AM
I've joined two tables (one parent table and one child table) by id.
The seceond table has many entries per id. When I display the result I get all results in a flat view. I would like to categorize the view so that
I can only see one parent entry in the first row and all depending child
entries in the second. Is that possible?
$query="SELECT t1.fam_name,t1.fam_street,t1.fam_zip,t1.fam_city,t1.fam_country,t1.id,t2.chi_name,t2.chi_birthdate,t2.parent_id
FROM parents as t1,children as t2
WHERE t1.id=t2.parent_id
GROUP BY t1.fam_name";
Subject
Written By
Posted
Categorized column
August 21, 2004 02:16AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.