I searched the best practice/way to select some rows from a SQL Server database.
The result should be a category + description and their seminars (titel, description, etc).
My query:
$bla = $db->query("
SELECT area.ID, area.Name // noname.Titel AS x
FROM SeminarCategorys tblJoin, Categorys area, Seminars noname
WHERE noname.ID = tblJoin.SeminarID
AND area.ID = tblJoin.CategoryID
GROUP BY area.ID, area.Name
");
This was my basic idea, but i have no idea how to select the other rows from the table 'Seminars'