{ "data": { "question": { "questionId": "2120", "questionFrontendId": "1972", "boundTopicId": null, "title": "First and Last Call On the Same Day", "titleSlug": "first-and-last-call-on-the-same-day", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 49, "dislikes": 12, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\": {\"Calls\": [\"caller_id\", \"recipient_id\", \"call_time\"]}, \"rows\": {\"Calls\": [[8, 4, \"2021-08-24 17:46:07\"], [4, 8, \"2021-08-24 19:57:13\"], [5, 1, \"2021-08-11 05:28:44\"], [8, 3, \"2021-08-17 04:04:15\"], [11, 3, \"2021-08-17 13:07:00\"], [8, 11, \"2021-08-17 22:22:22\"]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"3.2K\", \"totalSubmission\": \"6.1K\", \"totalAcceptedRaw\": 3154, \"totalSubmissionRaw\": 6075, \"acRate\": \"51.9%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Calls\": [\"caller_id\", \"recipient_id\", \"call_time\"]}, \"rows\": {\"Calls\": [[8, 4, \"2021-08-24 17:46:07\"], [4, 8, \"2021-08-24 19:57:13\"], [5, 1, \"2021-08-11 05:28:44\"], [8, 3, \"2021-08-17 04:04:15\"], [11, 3, \"2021-08-17 13:07:00\"], [8, 11, \"2021-08-17 22:22:22\"]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Calls (caller_id int, recipient_id int, call_time datetime)\"\n ],\n \"mssql\": [\n \"Create table Calls (caller_id int, recipient_id int, call_time datetime)\"\n ],\n \"oraclesql\": [\n \"Create table Calls (caller_id int, recipient_id int, call_time date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Calls (caller_id int, recipient_id int, call_time datetime)", "Truncate table Calls", "insert into Calls (caller_id, recipient_id, call_time) values ('8', '4', '2021-08-24 17:46:07')", "insert into Calls (caller_id, recipient_id, call_time) values ('4', '8', '2021-08-24 19:57:13')", "insert into Calls (caller_id, recipient_id, call_time) values ('5', '1', '2021-08-11 05:28:44')", "insert into Calls (caller_id, recipient_id, call_time) values ('8', '3', '2021-08-17 04:04:15')", "insert into Calls (caller_id, recipient_id, call_time) values ('11', '3', '2021-08-17 13:07:00')", "insert into Calls (caller_id, recipient_id, call_time) values ('8', '11', '2021-08-17 22:22:22')" ], "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" } } }