I have the following query
SELECT *, count(jx_commissions.commission_amount) AS summe
FROM jx_members
INNER JOIN jx_commissions ON jx_commissions.mid = jx_members.mid
WHERE jx_commissions.date > '2011-01-01'
GROUP BY jx_commissions.mid
ORDER BY summe DESC
LIMIT 1, 20
FieldThe date has a date format, and all dates have the correct Ymd format
but if I use this query, I get no results ... if I change the date to an earlier one, I get the wrong results ... I think it compares the string ... but how can I find the date ??


source
share