我有一张
下的表格____________________________________________________ |Name | DtFrom | DtTo | City | Designation | ____________________________________________________ | Z | 01/01/02 | 01/01/03 |Delhi | ADM | _____________________________________________________ | Z | 02/01/03 | 01/01/04 |Mumbai| ADM | _____________________________________________________ | Z | 02/01/04 | 01/01/05 |Delhi | DM | _____________________________________________________ | Z | 02/01/05 | 01/01/06 |Delhi | DM | _____________________________________________________ | Z | 02/01/06 | 01/01/07 |Mumbai| DM | _____________________________________________________ | Z | 05/01/07 | 12/12/10 |Mumbai| CDM |
我想查看数据 - “目前在哪里发布'Z',从何时开始?”并且显示应该如下:
From----------To-----------City-----Designation
| Z | 02/01/06 | 01/01/07 |Mumbai| DM |
_____________________________________________________
| Z | 05/01/07 | 12/12/10 |Mumbai| CDM |
_____________________________________________________
我正在使用vb.net中的gridview 请帮助我,因为desc的查询前2顺序不能解决目的。 非常感谢。