{ "data": { "question": { "questionId": "1932", "questionFrontendId": "1783", "categoryTitle": "Database", "boundTopicId": 639843, "title": "Grand Slam Titles", "titleSlug": "grand-slam-titles", "content": null, "translatedTitle": "大满贯数量", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 13, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"2.2K\", \"totalSubmission\": \"2.7K\", \"totalAcceptedRaw\": 2184, \"totalSubmissionRaw\": 2729, \"acRate\": \"80.0%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Players\": [\"player_id\", \"player_name\"], \"Championships\": [\"year\", \"Wimbledon\", \"Fr_open\", \"US_open\", \"Au_open\"]}, \"rows\": {\"Players\": [[1, \"Nadal\"], [2, \"Federer\"], [3, \"Novak\"]], \"Championships\": [[2018, 1, 1, 1, 1], [2019, 1, 1, 2, 2], [2020, 2, 1, 2, 2]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Players (player_id int, player_name varchar(20))\",\n \"Create table If Not Exists Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)\"\n ],\n \"mssql\": [\n \"Create table Players (player_id int, player_name varchar(20))\",\n \"Create table Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)\"\n ],\n \"oraclesql\": [\n \"Create table Players (player_id int, player_name varchar(20))\",\n \"Create table Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Players (player_id int, player_name varchar(20))", "Create table If Not Exists Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)", "Truncate table Players", "insert into Players (player_id, player_name) values ('1', 'Nadal')", "insert into Players (player_id, player_name) values ('2', 'Federer')", "insert into Players (player_id, player_name) values ('3', 'Novak')", "Truncate table Championships", "insert into Championships (year, Wimbledon, Fr_open, US_open, Au_open) values ('2018', '1', '1', '1', '1')", "insert into Championships (year, Wimbledon, Fr_open, US_open, Au_open) values ('2019', '1', '1', '2', '2')", "insert into Championships (year, Wimbledon, Fr_open, US_open, Au_open) values ('2020', '2', '1', '2', '2')" ], "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\": {\"Players\": [\"player_id\", \"player_name\"], \"Championships\": [\"year\", \"Wimbledon\", \"Fr_open\", \"US_open\", \"Au_open\"]}, \"rows\": {\"Players\": [[1, \"Nadal\"], [2, \"Federer\"], [3, \"Novak\"]], \"Championships\": [[2018, 1, 1, 1, 1], [2019, 1, 1, 2, 2], [2020, 2, 1, 2, 2]]}}", "__typename": "QuestionNode" } } }