统计+过滤(30分)

Y

ycc

Unregistered / Unconfirmed
GUEST, unregistred user!
如何先将一个数据库先
按日期字段过滤再用query
按其它字段分类统计
 
请详细说明您的需求
 
请详细说明您的需求
 
"按日期字段过滤"可以在SQL中写 where mydatefiled=......
不影响各种分类统计的SQL子句.
 
dwwang说的对啊,统计和过滤可以同时进行的
e.g
select field1,sum(field2),avg(field3) from table1
group by field4 where field5_data<=>...
 
试验一下多人加分.
 
顶部