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.

24 lines
1.9 KiB

5 months ago
/*
:
12024
2
3: ,,,
*/
SELECT stage_name AS , subject_name AS , ROW_NUMBER() OVER (PARTITION BY stage_name ORDER BY COUNT(*) DESC) AS , COUNT(*) AS FROM t_crawler_lesson WHERE publish_time >= '2024-01-01' AND publish_time < '2025-01-01' AND gather_regionc IS NOT NULL AND gather_regionc <> '' GROUP BY stage_name, subject_name ORDER BY stage_name, DESC;
/*
:
12024
2
3: ,,,,
*/
SELECT gather_regionc AS , stage_name AS , ROW_NUMBER() OVER (PARTITION BY gather_regionc ORDER BY COUNT(*) DESC) AS , teacher_school_name AS , COUNT(*) AS FROM t_crawler_lesson WHERE publish_time >= '2024-01-01' AND publish_time < '2025-01-01' AND gather_regionc IS NOT NULL AND gather_regionc != '' GROUP BY gather_regionc, stage_name, teacher_school_name ORDER BY gather_regionc, COUNT(*) DESC;
/*
:
12024
2
3: ,,,,,
*/
SELECT gather_regionc AS , stage_name AS , ROW_NUMBER() OVER (PARTITION BY gather_regionc ORDER BY COUNT(*) DESC) AS , teacher_school_name AS , EXTRACT(YEAR FROM publish_time) AS , COUNT(*) AS FROM t_crawler_lesson WHERE publish_time >= '2024-01-01' AND publish_time < '2025-01-01' AND gather_regionc = '二道区' AND gather_regionc IS NOT NULL AND gather_regionc != '' GROUP BY gather_regionc, stage_name, teacher_school_name, EXTRACT(YEAR FROM publish_time) ORDER BY gather_regionc, DESC;