这跟

select min(begdate),max(enddate) from sometable;

有什么分别?嘻嘻

所有跟帖: 

对应每个满足条件的endate,找到对应的,最早的begindate -猪不才- 给 猪不才 发送悄悄话 (0 bytes) () 12/01/2009 postreply 10:35:44

if looks like if... -HappyNow?!- 给 HappyNow?! 发送悄悄话 HappyNow?! 的博客首页 (101 bytes) () 12/01/2009 postreply 10:36:42

:) -烟仔哥- 给 烟仔哥 发送悄悄话 烟仔哥 的博客首页 (0 bytes) () 12/01/2009 postreply 11:35:08

sorry, you are right. They are the same thing unless -猪不才- 给 猪不才 发送悄悄话 (22 bytes) () 12/01/2009 postreply 10:44:23

Tel. # again? -- -:)))!!! -HappyNow?!- 给 HappyNow?! 发送悄悄话 HappyNow?! 的博客首页 (0 bytes) () 12/01/2009 postreply 10:53:47

呵呵,那你承认了先? -猪不才- 给 猪不才 发送悄悄话 (0 bytes) () 12/01/2009 postreply 10:58:45

那应该用sometable and someothertable,这就不会混肴了 -烟仔哥- 给 烟仔哥 发送悄悄话 烟仔哥 的博客首页 (0 bytes) () 12/01/2009 postreply 11:34:35

请您先登陆,再发跟帖!