{ "data": { "question": { "questionId": "1712", "questionFrontendId": "1565", "categoryTitle": "Database", "boundTopicId": 393668, "title": "Unique Orders and Customers Per Month", "titleSlug": "unique-orders-and-customers-per-month", "content": null, "translatedTitle": "按月统计订单数与顾客数", "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 7, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"4.4K\", \"totalSubmission\": \"6K\", \"totalAcceptedRaw\": 4367, \"totalSubmissionRaw\": 5954, \"acRate\": \"73.3%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"invoice\"]},\"rows\":{\"Orders\":[[1,\"2020-09-15\",1,30],[2,\"2020-09-17\",2,90],[3,\"2020-10-06\",3,20],[4,\"2020-10-20\",3,21],[5,\"2020-11-10\",1,10],[6,\"2020-11-21\",2,15],[7,\"2020-12-01\",4,55],[8,\"2020-12-03\",4,77],[9,\"2021-01-07\",3,31],[10,\"2021-01-15\",2,20]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, invoice int)\"\n ],\n \"mssql\": [\n \"Create table Orders (order_id int, order_date date, customer_id int, invoice int)\"\n ],\n \"oraclesql\": [\n \"Create table Orders (order_id int, order_date date, customer_id int, invoice int)\",\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 Orders (order_id int, order_date date, customer_id int, invoice int)", "Truncate table Orders", "insert into Orders (order_id, order_date, customer_id, invoice) values ('1', '2020-09-15', '1', '30')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('2', '2020-09-17', '2', '90')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('3', '2020-10-06', '3', '20')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('4', '2020-10-20', '3', '21')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('5', '2020-11-10', '1', '10')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('6', '2020-11-21', '2', '15')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('7', '2020-12-01', '4', '55')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('8', '2020-12-03', '4', '77')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('9', '2021-01-07', '3', '31')", "insert into Orders (order_id, order_date, customer_id, invoice) values ('10', '2021-01-15', '2', '20')" ], "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\":{\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"invoice\"]},\"rows\":{\"Orders\":[[1,\"2020-09-15\",1,30],[2,\"2020-09-17\",2,90],[3,\"2020-10-06\",3,20],[4,\"2020-10-20\",3,21],[5,\"2020-11-10\",1,10],[6,\"2020-11-21\",2,15],[7,\"2020-12-01\",4,55],[8,\"2020-12-03\",4,77],[9,\"2021-01-07\",3,31],[10,\"2021-01-15\",2,20]]}}", "__typename": "QuestionNode" } } }