TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
沙发
发表于 2014-11-07 14:52:18
|只看该作者
CREATE TABLE `score` (6 u2 B Y3 K" s l* M6 c2 Y- m
`KHSCOREID` int(11) NOT NULL AUTO_INCREMENT,
: a$ o2 o3 f0 V( `2 _2 N* _ `KHRYID` int(11) DEFAULT NULL,6 Q) `/ R% B: D0 w: x8 s& g) `
`BKHRYXM` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
( o$ J6 p7 p% O8 C `BKHRYID` int(11) DEFAULT NULL,7 h8 n4 m. s9 X/ W" a7 Q# e. \& @- R
`PDBZF` int(11) DEFAULT NULL,/ F2 ~5 l3 S/ W- `! H
`NLBZF` int(11) DEFAULT NULL,
8 [: I0 L r. v% R PRIMARY KEY (`KHSCOREID`)
: B+ }7 R/ t% s/ s* n7 c ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC
; b0 A- F( _9 w8 F
' o W' K! X3 N1 s! Y) u$ L" G6 I6 ysql :SELECT BKHRYXM,(SUM(NLBZF)- MAX(NLBZF)-MIN(NLBZF))/(COUNT(*)-2) FROM score GROUP BY BKHRYID |
|