TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
沙发
发表于 2014-11-07 14:52:18
|只看该作者
CREATE TABLE `score` (
" b! N! K/ Q1 J% Y `KHSCOREID` int(11) NOT NULL AUTO_INCREMENT,( H3 e% ?; d: s( ]
`KHRYID` int(11) DEFAULT NULL,6 i3 h( D+ W6 D
`BKHRYXM` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
' y7 a' ]7 y( x: V6 L `BKHRYID` int(11) DEFAULT NULL,# O8 y; [# G3 j0 S2 @; f# n& w- s
`PDBZF` int(11) DEFAULT NULL,. N' c6 ~5 @- o, W* l4 I- j
`NLBZF` int(11) DEFAULT NULL,
5 ~. K1 G' C- C& V8 k PRIMARY KEY (`KHSCOREID`)( `3 `2 V! L% a; Z$ x( j- p
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC
0 z! H8 [, n F/ I1 B- |1 g) S0 k9 l
sql :SELECT BKHRYXM,(SUM(NLBZF)- MAX(NLBZF)-MIN(NLBZF))/(COUNT(*)-2) FROM score GROUP BY BKHRYID |
|