I have table like this:
ID workType state IterationId date
-------------------------------------------------------------------
49 User Story Active 14 2016-06-28
49 User Story Active 10 2016-06-29
49 User Story Active 23 2016-07-03
49 User Story Active 26 2016-07-24
49 User Story Active 27 2016-07-25
50 bug Active 23 2016-07-15
50 bug Active 26 2016-07-20
51 User Story Active 10 2016-06-25
51 User Story Active 14 2016-06-28
. . . . .
. . . . .
. . . . .
i need to select the row that including minimum of date in each group of ID. so :
ID workType state IterationId date
---------------------------------------------------------------
49 User Story Active 14 2016-06-28
50 bug Active 23 2016-07-15
51 User Story Active 10 2016-06-25
. . . . .
. . . . .
. . . . .