You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.6 KiB
36 lines
1.6 KiB
SET NAMES utf8mb4;
|
|
USE zhiyuantong;
|
|
|
|
SELECT 'admission_batches' AS table_name, COUNT(*) AS row_count FROM admission_batches
|
|
UNION ALL SELECT 'admission_plan_releases', COUNT(*) FROM admission_plan_releases
|
|
UNION ALL SELECT 'admission_groups', COUNT(*) FROM admission_groups
|
|
UNION ALL SELECT 'admission_major_plans', COUNT(*) FROM admission_major_plans
|
|
UNION ALL SELECT 'score_rank_points', COUNT(*) FROM score_rank_points
|
|
UNION ALL SELECT 'control_score_lines', COUNT(*) FROM control_score_lines
|
|
UNION ALL SELECT 'admission_cutoff_lines', COUNT(*) FROM admission_cutoff_lines
|
|
UNION ALL SELECT 'dataset_coverage', COUNT(*) FROM dataset_coverage;
|
|
|
|
SELECT subject_category, education_level, segment_code, COUNT(*) AS row_count,
|
|
SUM(school_id IS NOT NULL) AS matched_school_id_count,
|
|
MIN(cutoff_score) AS min_cutoff_score, MAX(cutoff_score) AS max_cutoff_score
|
|
FROM admission_cutoff_lines
|
|
WHERE province_name='甘肃省' AND admission_year=2024
|
|
GROUP BY subject_category, education_level, segment_code;
|
|
|
|
SELECT subject_category, COUNT(*) AS score_points,
|
|
SUM(same_score_count) AS summed_candidates,
|
|
MAX(cumulative_count) AS final_cumulative_count
|
|
FROM score_rank_points
|
|
WHERE province_name='甘肃省' AND admission_year=2024
|
|
GROUP BY subject_category;
|
|
|
|
SELECT COUNT(*) AS missing_table_comments
|
|
FROM information_schema.tables
|
|
WHERE table_schema='zhiyuantong' AND table_type='BASE TABLE'
|
|
AND (table_comment IS NULL OR table_comment='');
|
|
|
|
SELECT COUNT(*) AS missing_column_comments
|
|
FROM information_schema.columns
|
|
WHERE table_schema='zhiyuantong'
|
|
AND (column_comment IS NULL OR column_comment='');
|
|
|
|
|