本帖最后由 lidq.jingwu 于 2009-12-15 11:25 编辑
心情:感动(click_1),路过(click_8),高兴(click_7),难过(click_6),搞笑(click_5),愤怒(click_4),无聊(click_3),同情(click_2)。
总分:- SELECT itemid,click_1+click_8+click_7+click_6+click_5+click_4+click_3+click_2 as total FROM supe_spaceitems;
复制代码 平均分:total/8
顶/踩:顶(click_9),踩(click_10)。
总分:- SELECT itemid,click_9+click_10 as total FROM supe_spaceitems;
复制代码 平均分:total/2
回复打分:支持(click_33),反对(click_34)。
总分:- SELECT cid,itemid,click_33+click_34 as total FROM supe_spacecomments;
复制代码 平均分:total/2
事件或人物打分:-5(click_11),-4(click_12),-3(click_13),-2(click_14),-1(click_15),0(click_16),1(click_17),2(click_18),3(click_19),4(click_20),5(click_21)。
总分:- SELECT itemid,click_11+click_12+click_13+click_14+click_15+click_16+click_17+click_18+click_19+click_20+click_21 as total FROM supe_spaceitems;
复制代码 平均分:total/11
内容质量打分:-5(click_22),-4(click_23),-3(click_24),-2(click_25),-1(click_26),0(click_27),1(click_28),2(click_29),3(click_30),4(click_31),5(click_32)
总分:- SELECT itemid,click_22+click_23+click_24+click_25+click_26+click_27+click_28+click_29+click_30+click_31+click_32 as total FROM supe_spaceitems;
复制代码 平均分:total/11
注意:这里是读取系统默认的,如果是自定义的,请根据表结构另写SQL。 |