TA的每日心情 | 衰 2021-2-2 11:21 |
---|
签到天数: 36 天 [LV.5]常住居民I
|
沙发
发表于 2014-11-07 14:52:18
|只看该作者
CREATE TABLE `score` (
# r9 b; W! a1 F0 X `KHSCOREID` int(11) NOT NULL AUTO_INCREMENT,
6 ]0 v7 y) R3 v% n# f: P# A" Q0 a) p `KHRYID` int(11) DEFAULT NULL,
7 u' ^ K4 b3 } `BKHRYXM` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
% s4 w' \" S9 y' N `BKHRYID` int(11) DEFAULT NULL, [' E x% K8 B* }2 N
`PDBZF` int(11) DEFAULT NULL,
- E0 r' m' T# e% }% S* T% @! Z$ n$ c `NLBZF` int(11) DEFAULT NULL,
/ \: Y* h; T/ n9 i# a4 B PRIMARY KEY (`KHSCOREID`)
0 k0 {9 L! M0 I/ s# A ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC* M& k- A% `1 @, y2 W5 L. v
/ i" B( g L( Z8 p
sql :SELECT BKHRYXM,(SUM(NLBZF)- MAX(NLBZF)-MIN(NLBZF))/(COUNT(*)-2) FROM score GROUP BY BKHRYID |
|