date name batch
------------------------------
2016-01-01 Ram batch1
2016-01-01 Hari batch1
2016-01-01 Venkat batch2
2016-01-01 Ravi batch2
2016-01-02 Ram batch1
2016-01-02 Hari batch1
2016-01-02 Venkat batch2
2016-01-02 Ravi batch2
我需要输出:
date count batch
-----------------------------
2016-01-01 2 batch1
2016-01-01 2 batch2
2016-01-02 2 batch1
2016-01-02 2 batch2