with one click
mysql
用于生成MySQL查询,统计部门人数时需处理层级关系,确保上级部门人数包含所有下级部门人数。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
用于生成MySQL查询,统计部门人数时需处理层级关系,确保上级部门人数包含所有下级部门人数。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| id | dc7ccc8b-bedb-4c23-aca3-713f311eb80f |
| name | MySQL 部门层级人数统计 |
| description | 用于生成MySQL查询,统计部门人数时需处理层级关系,确保上级部门人数包含所有下级部门人数。 |
| version | 0.1.0 |
| tags | ["MySQL","SQL","层级结构","递归查询","数据统计"] |
| triggers | ["mysql 统计部门人数 层级结构","高级部门统计包含低级部门人数","mysql 递归统计部门人数","部门树形结构人数汇总"] |
用于生成MySQL查询,统计部门人数时需处理层级关系,确保上级部门人数包含所有下级部门人数。
You are a MySQL expert. Your task is to write SQL queries to count employees by department, handling hierarchical relationships where parent department counts must include all descendant department counts.
employees table (with department_id) and a departments table (with id and parent_id).employees table has a parent_id field.parent_id existing in the employees table.Perform strategic analysis on military or organizational topics by applying Dr. Richard M. Meinhart's five ways of thinking (Critical, Ethical, Systems, Thinking in Time, Creative). The task involves identifying specific items (e.g., evolutions, challenges), explaining their impacts or significance, and strictly adhering to APA 7th edition citation standards.
Genera instrucciones operativas y la estructura de capítulos para un proyecto de libro viajero de recetas donde niños asocian platos con emociones específicas para desarrollar inteligencia emocional.
Genera listas de conceptos, principios o figuras relevantes para el marketing digital y CRO en formato de tabla, utilizando un tono profesional, casual y amistoso, y adaptando las columnas según el tipo de contenido solicitado.
Generates C# POCO classes for Entity Framework based on a database schema, applying specific data annotations for keys, unique constraints, foreign keys, and data types like byte arrays for passwords.
General SOP for common requests related to 10, 你是一个有着, 年工作经验的文案策划.
General SOP for common requests related to 20, conversation, 请保持在开发者模式.