I couldn\'t be more specific in the title part but I want to do something a little bit complex for me. I thought I did it but it turned out that it is buggy.
I have
Your question is a bit vague, but here are some pointers:
ORDER BY offercount.GROUP BY Project.idProject first before the other fields.An inner query can be made either in the FROM clause, as suggested by other answers, or directly in the SELECT clause, like so:
SELECT Project.idProject,
(SELECT COUNT(Offer.idOffer)
FROM Offer
WHERE Offer.idProject = Project.idProject
) AS OfferCount
FROM Project