Recupere max d'une requete
Posté : 15 avr. 2007, 12:33
Bonjour,
Tout skimplement (je débute) je n'arrive pas a récuperer le max de ce tableau retourner dans une premiere requete:
SELECT DISTINCT titre_id, count(mix_id)
FROM `mixs`
GROUP BY titre_id
en fait j'essai un truc du style
SELECT MAX(COUNT(mix_id), titre_id) IN (SELECT DISTINCT titre_id, count(mix_id)
FROM `mixs`
GROUP BY titre_id)
Tout skimplement (je débute) je n'arrive pas a récuperer le max de ce tableau retourner dans une premiere requete:
SELECT DISTINCT titre_id, count(mix_id)
FROM `mixs`
GROUP BY titre_id
en fait j'essai un truc du style
SELECT MAX(COUNT(mix_id), titre_id) IN (SELECT DISTINCT titre_id, count(mix_id)
FROM `mixs`
GROUP BY titre_id)