SQL中的CASE WHEN用法(三)

2014-11-23 19:16:00 · 作者: · 浏览: 100
EO',NN,0)) AS VIDEO_TIMES ,

max(decode(action,'SEARCH',NN,0)) AS VIDEO_TIMES

from

(select username,action,count(*) AS NN from table1

group by username,action)


group by username

作者 dchengquan53390