我有这样的表:
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
. . . . .
. . . . .
. . . . .
Run Code Online (Sandbox Code Playgroud)
我需要在每组ID中选择包含最小日期的行.所以:
ID workType state IterationId date …Run Code Online (Sandbox Code Playgroud)