{ "data": { "question": { "questionId": "2515", "questionFrontendId": "2372", "categoryTitle": "Database", "boundTopicId": 1746115, "title": "Calculate the Influence of Each Salesperson", "titleSlug": "calculate-the-influence-of-each-salesperson", "content": null, "translatedTitle": " Calculate the Influence of Each Salesperson", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 0, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"63\", \"totalSubmission\": \"72\", \"totalAcceptedRaw\": 63, \"totalSubmissionRaw\": 72, \"acRate\": \"87.5%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Salesperson\":[\"salesperson_id\",\"name\"],\"Customer\":[\"customer_id\",\"salesperson_id\"],\"Sales\":[\"sale_id\",\"customer_id\",\"price\"]},\"rows\":{\"Salesperson\":[[1,\"Alice\"],[2,\"Bob\"],[3,\"Jerry\"]],\"Customer\":[[1,1],[2,1],[3,2]],\"Sales\":[[1,2,892],[2,1,354],[3,3,988],[4,3,856]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Salesperson (salesperson_id int, name varchar(30))\",\n \"Create table If Not Exists Customer (customer_id int, salesperson_id int)\",\n \"Create table If Not Exists Sales (sale_id int, customer_id int, price int)\"\n ],\n \"mssql\": [\n \"Create table Salesperson (salesperson_id int, name varchar(30))\",\n \"Create table Customer (customer_id int, salesperson_id int)\",\n \"Create table Sales (sale_id int, customer_id int, price int)\"\n ],\n \"oraclesql\": [\n \"Create table Salesperson (salesperson_id int, name varchar(30))\",\n \"Create table Customer (customer_id int, salesperson_id int)\",\n \"Create table Sales (sale_id int, customer_id int, price int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Salesperson (salesperson_id int, name varchar(30))", "Create table If Not Exists Customer (customer_id int, salesperson_id int)", "Create table If Not Exists Sales (sale_id int, customer_id int, price int)", "Truncate table Salesperson", "insert into Salesperson (salesperson_id, name) values ('1', 'Alice')", "insert into Salesperson (salesperson_id, name) values ('2', 'Bob')", "insert into Salesperson (salesperson_id, name) values ('3', 'Jerry')", "Truncate table Customer", "insert into Customer (customer_id, salesperson_id) values ('1', '1')", "insert into Customer (customer_id, salesperson_id) values ('2', '1')", "insert into Customer (customer_id, salesperson_id) values ('3', '2')", "Truncate table Sales", "insert into Sales (sale_id, customer_id, price) values ('1', '2', '892')", "insert into Sales (sale_id, customer_id, price) values ('2', '1', '354')", "insert into Sales (sale_id, customer_id, price) values ('3', '3', '988')", "insert into Sales (sale_id, customer_id, price) values ('4', '3', '856')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"

\\u7248\\u672c\\uff1aMySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"

mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"

Oracle Sql 11.2.<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"Salesperson\":[\"salesperson_id\",\"name\"],\"Customer\":[\"customer_id\",\"salesperson_id\"],\"Sales\":[\"sale_id\",\"customer_id\",\"price\"]},\"rows\":{\"Salesperson\":[[1,\"Alice\"],[2,\"Bob\"],[3,\"Jerry\"]],\"Customer\":[[1,1],[2,1],[3,2]],\"Sales\":[[1,2,892],[2,1,354],[3,3,988],[4,3,856]]}}", "__typename": "QuestionNode" } } }