{ "data": { "question": { "questionId": "1898", "questionFrontendId": "1747", "boundTopicId": null, "title": "Leetflex Banned Accounts", "titleSlug": "leetflex-banned-accounts", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 73, "dislikes": 5, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"LogInfo\":[\"account_id\",\"ip_address\",\"login\",\"logout\"]},\"rows\":{\"LogInfo\":[[1,1,\"2021-02-01 09:00:00\",\"2021-02-01 09:30:00\"],[1,2,\"2021-02-01 08:00:00\",\"2021-02-01 11:30:00\"],[2,6,\"2021-02-01 20:30:00\",\"2021-02-01 22:00:00\"],[2,7,\"2021-02-02 20:30:00\",\"2021-02-02 22:00:00\"],[3,9,\"2021-02-01 16:00:00\",\"2021-02-01 16:59:59\"],[3,13,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"],[4,10,\"2021-02-01 16:00:00\",\"2021-02-01 17:00:00\"],[4,11,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"7.8K\", \"totalSubmission\": \"11.5K\", \"totalAcceptedRaw\": 7752, \"totalSubmissionRaw\": 11505, \"acRate\": \"67.4%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"LogInfo\":[\"account_id\",\"ip_address\",\"login\",\"logout\"]},\"rows\":{\"LogInfo\":[[1,1,\"2021-02-01 09:00:00\",\"2021-02-01 09:30:00\"],[1,2,\"2021-02-01 08:00:00\",\"2021-02-01 11:30:00\"],[2,6,\"2021-02-01 20:30:00\",\"2021-02-01 22:00:00\"],[2,7,\"2021-02-02 20:30:00\",\"2021-02-02 22:00:00\"],[3,9,\"2021-02-01 16:00:00\",\"2021-02-01 16:59:59\"],[3,13,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"],[4,10,\"2021-02-01 16:00:00\",\"2021-02-01 17:00:00\"],[4,11,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists LogInfo (account_id int, ip_address int, login datetime, logout datetime)\"\n ],\n \"mssql\": [\n \"Create table LogInfo (account_id int, ip_address int, login datetime, logout datetime)\"\n ],\n \"oraclesql\": [\n \"Create table LogInfo (account_id int, ip_address int, login date, logout date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"\n ],\n \"database\": true,\n \"manual\": false\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists LogInfo (account_id int, ip_address int, login datetime, logout datetime)", "Truncate table LogInfo", "insert into LogInfo (account_id, ip_address, login, logout) values ('1', '1', '2021-02-01 09:00:00', '2021-02-01 09:30:00')", "insert into LogInfo (account_id, ip_address, login, logout) values ('1', '2', '2021-02-01 08:00:00', '2021-02-01 11:30:00')", "insert into LogInfo (account_id, ip_address, login, logout) values ('2', '6', '2021-02-01 20:30:00', '2021-02-01 22:00:00')", "insert into LogInfo (account_id, ip_address, login, logout) values ('2', '7', '2021-02-02 20:30:00', '2021-02-02 22:00:00')", "insert into LogInfo (account_id, ip_address, login, logout) values ('3', '9', '2021-02-01 16:00:00', '2021-02-01 16:59:59')", "insert into LogInfo (account_id, ip_address, login, logout) values ('3', '13', '2021-02-01 17:00:00', '2021-02-01 17:59:59')", "insert into LogInfo (account_id, ip_address, login, logout) values ('4', '10', '2021-02-01 16:00:00', '2021-02-01 17:00:00')", "insert into LogInfo (account_id, ip_address, login, logout) values ('4', '11', '2021-02-01 17:00:00', '2021-02-01 17:59:59')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.