Let the storm money come!

昨天要写的sql

代码
select * from grouptest, 
(
    
select code, MAX(createtime) as tt from dbo.GroupTest
    
group by code
) main 

where main.code = grouptest.code and main.tt = grouptest.createtime
group by id, grouptest.code

 

posted @ 2010-07-01 22:47  精密~顽石  阅读(149)  评论(0编辑  收藏  举报
在通往地狱的路上,加班能使你更快到达。