TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
沙发
发表于 2014-11-07 14:52:18
|只看该作者
CREATE TABLE `score` (6 F# Z9 {0 `8 D G3 r# e4 k$ N! Z
`KHSCOREID` int(11) NOT NULL AUTO_INCREMENT,$ e: C! x B5 u2 J* K3 f4 H
`KHRYID` int(11) DEFAULT NULL,
/ U) d) h Z7 t+ I. k* R `BKHRYXM` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
t% q: i8 S% v S `BKHRYID` int(11) DEFAULT NULL,
/ e9 u8 t6 M" T# N0 y `PDBZF` int(11) DEFAULT NULL,. R' k V3 `7 r' A1 | |( N
`NLBZF` int(11) DEFAULT NULL, k/ O9 O7 O! E! Z9 ^
PRIMARY KEY (`KHSCOREID`)/ ]( ?' V* S( c2 H v, ^; E
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC
: K: o% u% m$ i8 Q) D3 Q9 ^
k6 W" i# ?4 y0 |3 \* Jsql :SELECT BKHRYXM,(SUM(NLBZF)- MAX(NLBZF)-MIN(NLBZF))/(COUNT(*)-2) FROM score GROUP BY BKHRYID |
|