Tableau A id structure a1 a2
tableau temps d'identification de la structure de B b1 b2choisir parmi deux tables et compter et commander par le nombre total?
Tableau de données A
1 .. ..
2 .. ..
3 .. ..
données de table B
1 129873635 blah blah
2 129880006 blah blah
2 129890676 blah blah
3 129973635 blah blah
2 129973635 blah blah
3 129936350 blah blah
2 129973635 blah blah
1 129873835 blah blah
je veux sélectionner TableA et aussi TableB où tablea.id = tableb.id et count tableb où time> x ordre par nombre de tableb ..
Je veux des résultats comme
2 blah blah (which has 4 row in table B)
1 blah blah (which has 2 row in table B)
3 blah blah (which has 2 row in table B)
S'il vous plaît poster la merci de requête ...
nombre SELECT (b_userchatmem. *), b_userchatmem.time dE b_rooms INNER JOIN b_userchatmem ON (b_userchatmem.roomid = b_rooms.roomid) OÙ b_userchatmem.time> maintenant() GROUP BY b_rooms.roomid COMMANDER PAR compte (b_userchatmem. *) Je reçois erreur plz voir ceci – mahiya