T
tonyliu
Unregistered / Unconfirmed
GUEST, unregistred user!
数据表如下:<br>custid data num<br>1021 20070911 123.2<br>1022 20070919 3410.2<br>1021 20070912 224.6<br>1022 20070901 4434.3<br>1021 20070914 32.4<br>1022 20070914 324.09<br>1021 20070923 324.23<br>1022 20070912 324.6<br><br>要对custid为1021和1022分别统计前头两个日期的num值的和,这样的SQL语句如何写,请各位多多指教