{ "data": { "question": { "questionId": "2613", "questionFrontendId": "2474", "boundTopicId": null, "title": "Customers With Strictly Increasing Purchases", "titleSlug": "customers-with-strictly-increasing-purchases", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 5, "dislikes": 2, "isLiked": null, "similarQuestions": "[{\"title\": \"Report Contiguous Dates\", \"titleSlug\": \"report-contiguous-dates\", \"difficulty\": \"Hard\", \"translatedTitle\": null}, {\"title\": \"Find the Start and End Number of Continuous Ranges\", \"titleSlug\": \"find-the-start-and-end-number-of-continuous-ranges\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]", "exampleTestcases": "{\"headers\": {\"Orders\": [\"order_id\", \"customer_id\", \"order_date\", \"price\"]}, \"rows\": {\"Orders\": [[1, 1, \"2019-07-01\", 1100], [2, 1, \"2019-11-01\", 1200], [3, 1, \"2020-05-26\", 3000], [4, 1, \"2021-08-31\", 3100], [5, 1, \"2022-12-07\", 4700], [6, 2, \"2015-01-01\", 700], [7, 2, \"2017-11-07\", 1000], [8, 3, \"2017-01-01\", 900], [9, 3, \"2018-11-07\", 900]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"137\", \"totalSubmission\": \"192\", \"totalAcceptedRaw\": 137, \"totalSubmissionRaw\": 192, \"acRate\": \"71.4%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Orders\": [\"order_id\", \"customer_id\", \"order_date\", \"price\"]}, \"rows\": {\"Orders\": [[1, 1, \"2019-07-01\", 1100], [2, 1, \"2019-11-01\", 1200], [3, 1, \"2020-05-26\", 3000], [4, 1, \"2021-08-31\", 3100], [5, 1, \"2022-12-07\", 4700], [6, 2, \"2015-01-01\", 700], [7, 2, \"2017-11-07\", 1000], [8, 3, \"2017-01-01\", 900], [9, 3, \"2018-11-07\", 900]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Orders (order_id int, customer_id int, order_date date, price int)\"\n ],\n \"mssql\": [\n \"Create table Orders (order_id int, customer_id int, order_date date, price int)\"\n ],\n \"oraclesql\": [\n \"Create table Orders (order_id int, customer_id int, order_date date, price 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, customer_id int, order_date date, price int)", "Truncate table Orders", "insert into Orders (order_id, customer_id, order_date, price) values ('1', '1', '2019-07-01', '1100')", "insert into Orders (order_id, customer_id, order_date, price) values ('2', '1', '2019-11-01', '1200')", "insert into Orders (order_id, customer_id, order_date, price) values ('3', '1', '2020-05-26', '3000')", "insert into Orders (order_id, customer_id, order_date, price) values ('4', '1', '2021-08-31', '3100')", "insert into Orders (order_id, customer_id, order_date, price) values ('5', '1', '2022-12-07', '4700')", "insert into Orders (order_id, customer_id, order_date, price) values ('6', '2', '2015-01-01', '700')", "insert into Orders (order_id, customer_id, order_date, price) values ('7', '2', '2017-11-07', '1000')", "insert into Orders (order_id, customer_id, order_date, price) values ('8', '3', '2017-01-01', '900')", "insert into Orders (order_id, customer_id, order_date, price) values ('9', '3', '2018-11-07', '900')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"

MySQL 8.0.

\"], \"mssql\": [\"MS SQL Server\", \"

mssql server 2019.

\"], \"oraclesql\": [\"Oracle\", \"

Oracle Sql 11.2.

\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }