mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
67 lines
5.3 KiB
JSON
67 lines
5.3 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "615",
|
|
"questionFrontendId": "615",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 2632,
|
|
"title": "Average Salary: Departments VS Company",
|
|
"titleSlug": "average-salary-departments-vs-company",
|
|
"content": null,
|
|
"translatedTitle": "平均工资:部门与公司比较",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Hard",
|
|
"likes": 56,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"11.2K\", \"totalSubmission\": \"26.4K\", \"totalAcceptedRaw\": 11170, \"totalSubmissionRaw\": 26380, \"acRate\": \"42.3%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Salary\":[\"id\",\"employee_id\",\"amount\",\"pay_date\"],\"Employee\":[\"employee_id\",\"department_id\"]},\"rows\":{\"Salary\":[[1,1,9000,\"2017/03/31\"],[2,2,6000,\"2017/03/31\"],[3,3,10000,\"2017/03/31\"],[4,1,7000,\"2017/02/28\"],[5,2,6000,\"2017/02/28\"],[6,3,8000,\"2017/02/28\"]],\"Employee\":[[1,1],[2,2],[3,2]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Salary (id int, employee_id int, amount int, pay_date date)\",\"Create table If Not Exists Employee (employee_id int, department_id int)\"],\"mssql\":[\"Create table Salary (id int, employee_id int, amount int, pay_date date)\",\"Create table Employee (employee_id int, department_id int)\"],\"oraclesql\":[\"Create table Salary (id int, employee_id int, amount int, pay_date date)\",\"Create table Employee (employee_id int, department_id int)\",\"alter SESSION set NLS_DATE_FORMAT = 'YYYY\\/MM\\/DD'\"],\"database\":true,\"name\":\"average_salary\",\"pythondata\":[\"Salary = pd.DataFrame([], columns=['id', 'employee_id', 'amount', 'pay_date']).astype({'id':'Int64', 'employee_id':'Int64', 'amount':'Int64', 'pay_date':'datetime64[ns]'})\",\"Employee = pd.DataFrame([], columns=['employee_id', 'department_id']).astype({'employee_id':'Int64', 'department_id':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Salary (id int, employee_id int, amount int, pay_date date)\\n\",\"Create table If Not Exists Employee (employee_id int, department_id int)\"],\"database_schema\":{\"Salary\":{\"id\":\"INT\",\"employee_id\":\"INT\",\"amount\":\"INT\",\"pay_date\":\"DATE\"},\"Employee\":{\"employee_id\":\"INT\",\"department_id\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Salary (id int, employee_id int, amount int, pay_date date)",
|
|
"Create table If Not Exists Employee (employee_id int, department_id int)",
|
|
"Truncate table Salary",
|
|
"insert into Salary (id, employee_id, amount, pay_date) values ('1', '1', '9000', '2017/03/31')",
|
|
"insert into Salary (id, employee_id, amount, pay_date) values ('2', '2', '6000', '2017/03/31')",
|
|
"insert into Salary (id, employee_id, amount, pay_date) values ('3', '3', '10000', '2017/03/31')",
|
|
"insert into Salary (id, employee_id, amount, pay_date) values ('4', '1', '7000', '2017/02/28')",
|
|
"insert into Salary (id, employee_id, amount, pay_date) values ('5', '2', '6000', '2017/02/28')",
|
|
"insert into Salary (id, employee_id, amount, pay_date) values ('6', '3', '8000', '2017/02/28')",
|
|
"Truncate table Employee",
|
|
"insert into Employee (employee_id, department_id) values ('1', '1')",
|
|
"insert into Employee (employee_id, department_id) values ('2', '2')",
|
|
"insert into Employee (employee_id, department_id) values ('3', '2')"
|
|
],
|
|
"enableRunCode": true,
|
|
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
|
|
"book": null,
|
|
"isSubscribed": false,
|
|
"isDailyQuestion": false,
|
|
"dailyRecordStatus": null,
|
|
"editorType": "CKEDITOR",
|
|
"ugcQuestionId": null,
|
|
"style": "LEETCODE",
|
|
"exampleTestcases": "{\"headers\":{\"Salary\":[\"id\",\"employee_id\",\"amount\",\"pay_date\"],\"Employee\":[\"employee_id\",\"department_id\"]},\"rows\":{\"Salary\":[[1,1,9000,\"2017/03/31\"],[2,2,6000,\"2017/03/31\"],[3,3,10000,\"2017/03/31\"],[4,1,7000,\"2017/02/28\"],[5,2,6000,\"2017/02/28\"],[6,3,8000,\"2017/02/28\"]],\"Employee\":[[1,1],[2,2],[3,2]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |