select count(case 分数字段 when 100 then 1 end) as [满分],count(case when 分数字段 between 90 and 99 then 1 end) as[90-99分],count(case when 分数字段 between 80 and 89 then 1 end) as[80-89分],count(case when 分数字段 between 70 and 79 then 1 end) as[70-79分],count(case w…
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1235 统计同成绩学生人数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 16022 Accepted Submission(s): 9214 Problem Description 读入N名学生的成绩,将获得某一给定分数的学生人数输…
select * from student order by id drop table student select * from oracletest create table student( idcard varchar2(18), name varchar2(20), sex int, high int, age int ) insert into student values ('450326198912241844','罗江超',0,178,null);insert into st…
python制作简单excel统计报表2之操作excel的模块openpyxl简单用法 # coding=utf-8 from openpyxl import Workbook, load_workbook from openpyxl.drawing.image import Image from openpyxl.styles import Font,colors from datetime import datetime import MySQLdb class ExcelUtils(obj…
select sClass 班级,count(*) 班级学生总人数, sum(case when sGender=0 then 1 else 0 end) 女生人数, sum(case when sGender=0 then 1 else 0 end)*1.0/count(*)女生所占比例, sum(case when sGender=1 then 1 else 0 end) 男生人数, sum(case when sGender=1 then 1 else 0 end)*1.0 /coun…
Sub fun1() '统计每一个sheet有多少行数据 Set s1 = Sheets("Sheet1") 'totalok = 0 To Sheets.Count s1.Cells(i, ) = Sheets(i).Name r = Sheets(i).Range("A65535").End(xlUp).Row s1.Cells(i, ) = r Then totalok = totalok + r End If Next s1.Cells(, ) = tota…
select DATE_FORMAT(FROM_UNIXTIME(date),'%Y-%m-%d') as d, count(*) as c from tb where (FROM_UNIXTIME(date)) ')) and (FROM_UNIXTIME(date)) ')) group by d…
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] mat = new int[1001];// 最多仅仅有1000个,浪费1个 int temp = 0, count = 0; while (sc.hasNext()) { int n = sc.nextInt(); if (n == 0)…