{ "data": { "question": { "questionId": "1357", "questionFrontendId": "1225", "categoryTitle": "Database", "boundTopicId": 35336, "title": "Report Contiguous Dates", "titleSlug": "report-contiguous-dates", "content": null, "translatedTitle": "报告系统状态的连续日期", "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 47, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"4.5K\", \"totalSubmission\": \"8.3K\", \"totalAcceptedRaw\": 4480, \"totalSubmissionRaw\": 8305, \"acRate\": \"53.9%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Failed\":[\"fail_date\"],\"Succeeded\":[\"success_date\"]},\"rows\":{\"Failed\":[[\"2018-12-28\"],[\"2018-12-29\"],[\"2019-01-04\"],[\"2019-01-05\"]],\"Succeeded\":[[\"2018-12-30\"],[\"2018-12-31\"],[\"2019-01-01\"],[\"2019-01-02\"],[\"2019-01-03\"],[\"2019-01-06\"]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Failed (fail_date date)\",\n \"Create table If Not Exists Succeeded (success_date date)\"\n ],\n \"mssql\": [\n \"Create table Failed (fail_date date)\",\n \"Create table Succeeded (success_date date)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Failed (fail_date date)\",\n \"Create table Succeeded (success_date date)\\n\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Failed (fail_date date)", "Create table If Not Exists Succeeded (success_date date)", "Truncate table Failed", "insert into Failed (fail_date) values ('2018-12-28')", "insert into Failed (fail_date) values ('2018-12-29')", "insert into Failed (fail_date) values ('2019-01-04')", "insert into Failed (fail_date) values ('2019-01-05')", "Truncate table Succeeded", "insert into Succeeded (success_date) values ('2018-12-30')", "insert into Succeeded (success_date) values ('2018-12-31')", "insert into Succeeded (success_date) values ('2019-01-01')", "insert into Succeeded (success_date) values ('2019-01-02')", "insert into Succeeded (success_date) values ('2019-01-03')", "insert into Succeeded (success_date) values ('2019-01-06')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a 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\":{\"Failed\":[\"fail_date\"],\"Succeeded\":[\"success_date\"]},\"rows\":{\"Failed\":[[\"2018-12-28\"],[\"2018-12-29\"],[\"2019-01-04\"],[\"2019-01-05\"]],\"Succeeded\":[[\"2018-12-30\"],[\"2018-12-31\"],[\"2019-01-01\"],[\"2019-01-02\"],[\"2019-01-03\"],[\"2019-01-06\"]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"