for example i have a table which looks like :
id | date | ...
- 20.07.2011
- 20.07.2011
- 20.07.2011
- 20.07.2011
- 21.07.2011
- 21.07.2011
- 21.07.2011
- 21.07.2011
- 25.07.2011
- 25.07.2011
- 25.07.2011
- 25.07.2011
- 25.07.2011
- 25.07.2011
- 25.07.2011
- 31.07.2011
- 31.07.2011
- 31.07.2011
- 02.08.2011
- 02.08.2011
- 02.08.2011
- 02.08.2011
- 02.08.2011
- 02.08.2011
- 02.08.2011
- 02.08.2011
how i can get each date and ids for each date in easiest way ( maybe only with a query )
i need something like :
20.07.2011 {1,2,3,4}
21.07.2011 {5,6,7,8}
25.07.2011 {9,10,11,12,13,14,15}
31.07.2011 ...
02.08.2011 ...