I want group this table
column1| date
A |2016-07-01
A |2016-07-01
A |2016-07-02
C |2016-07-01
C |2016-07-02
and i need get the result something like this
column1 | date
A |2016-07-01
A |2016-07-02
C |2016-07-01
C |2016-07-02
This is what i did to sort the table to get the result like above table
SELECT * FROM table1 GROUP BY column1 and date
but not working . How can i do that ?