{ "data": { "question": { "questionId": "1278", "questionFrontendId": "1164", "boundTopicId": null, "title": "Product Price at a Given Date", "titleSlug": "product-price-at-a-given-date", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 245, "dislikes": 67, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Products\":[\"product_id\",\"new_price\",\"change_date\"]},\"rows\":{\"Products\":[[1,20,\"2019-08-14\"],[2,50,\"2019-08-14\"],[1,30,\"2019-08-15\"],[1,35,\"2019-08-16\"],[2,65,\"2019-08-17\"],[3,20,\"2019-08-18\"]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"29.6K\", \"totalSubmission\": \"43.2K\", \"totalAcceptedRaw\": 29563, \"totalSubmissionRaw\": 43212, \"acRate\": \"68.4%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Products\":[\"product_id\",\"new_price\",\"change_date\"]},\"rows\":{\"Products\":[[1,20,\"2019-08-14\"],[2,50,\"2019-08-14\"],[1,30,\"2019-08-15\"],[1,35,\"2019-08-16\"],[2,65,\"2019-08-17\"],[3,20,\"2019-08-18\"]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Products (product_id int, new_price int, change_date date)\"\n ],\n \"mssql\": [\n \"Create table Products (product_id int, new_price int, change_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Products (product_id int, new_price int, change_date date)\",\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 Products (product_id int, new_price int, change_date date)", "Truncate table Products", "insert into Products (product_id, new_price, change_date) values ('1', '20', '2019-08-14')", "insert into Products (product_id, new_price, change_date) values ('2', '50', '2019-08-14')", "insert into Products (product_id, new_price, change_date) values ('1', '30', '2019-08-15')", "insert into Products (product_id, new_price, change_date) values ('1', '35', '2019-08-16')", "insert into Products (product_id, new_price, change_date) values ('2', '65', '2019-08-17')", "insert into Products (product_id, new_price, change_date) values ('3', '20', '2019-08-18')" ], "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" } } }