TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
沙发
发表于 2014-11-07 14:52:18
|只看该作者
CREATE TABLE `score` (
5 u1 w0 s; b0 f$ o& ] `KHSCOREID` int(11) NOT NULL AUTO_INCREMENT,
2 w8 R: H J$ K9 Z/ F8 }: B `KHRYID` int(11) DEFAULT NULL,
! p/ i( z# H o: f; q3 V `BKHRYXM` varchar(20) CHARACTER SET latin1 DEFAULT NULL,6 o& W2 `8 s# C8 E
`BKHRYID` int(11) DEFAULT NULL,
) `- _2 z0 h) C4 g/ @8 \ `PDBZF` int(11) DEFAULT NULL,% a5 |' [9 S7 Z/ J
`NLBZF` int(11) DEFAULT NULL,
3 V N* o; [! Y1 V4 A PRIMARY KEY (`KHSCOREID`)
! j5 |- f. n4 C ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC o, Z3 h& w- v' O( h
% l3 y: Q9 J( F
sql :SELECT BKHRYXM,(SUM(NLBZF)- MAX(NLBZF)-MIN(NLBZF))/(COUNT(*)-2) FROM score GROUP BY BKHRYID |
|