I need to retrieve records from two tables and group them by date. I use a LEFT JOIN to get the data but I was wondering whether I should use
DISTINCT DATE(t1.date)
or
GROUP BY DATE(t1.date)
Which one is faster?
I need to retrieve records from two tables and group them by date. I use a LEFT JOIN to get the data but I was wondering whether I should use
DISTINCT DATE(t1.date)
or
GROUP BY DATE(t1.date)
Which one is faster?