L
l_diamond
Unregistered / Unconfirmed
GUEST, unregistred user!
table1;<br>deviceid name model servdate supplierid<br>1 aa dsd 2006-01-02 00:00:00.000 3 <br>1 aa dsd 2007-01-01 00:00:00.000 2 [] //日期最新的 <br>2 df sd 2005-02-03 00:00:00.000 1 <br>2 df sd 2007-01-03 00:00:00.000 4 <br>2 df sd 2008-01-04 00:00:00.000 1 [] <br>3 ds dss NULL NULL<br>4 dds er NULL NULL<br>想实现如下这样的表,请问SQL怎么写呢?谢谢先<br>deviceid name model servdate supplierid<br>1 aa dsd 2007-01-01 00:00:00.000 2 <br>2 df sd 2008-01-04 00:00:00.000 1 <br>3 ds dss NULL NULL<br>4 dds er NULL NULL