1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-25 17:50:26 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/server-utilization-time.json
2024-04-30 10:04:49 +08:00

196 lines
32 KiB
JSON

{
"data": {
"question": {
"questionId": "3440",
"questionFrontendId": "3126",
"categoryTitle": "Database",
"boundTopicId": 2758487,
"title": "Server Utilization Time",
"titleSlug": "server-utilization-time",
"content": "<p>Table: <code>Servers</code></p>\n\n<pre>\n+----------------+----------+\n| Column Name | Type |\n+----------------+----------+\n| server_id | int |\n| status_time | datetime |\n| session_status | enum |\n+----------------+----------+\n(server_id, status_time, session_status) is the primary key (combination of columns with unique values) for this table.\nsession_status is an ENUM (category) type of (&#39;start&#39;, &#39;stop&#39;).\nEach row of this table contains server_id, status_time, and session_status.\n</pre>\n\n<p>Write a solution to find the <strong>total time</strong> when servers were <strong>running</strong>. The output should be rounded down to the nearest number of&nbsp;<strong>full days</strong>.</p>\n\n<p>Return <em>the result table in <strong>any</strong></em><em>&nbsp;order.</em></p>\n\n<p>The result format is in the following example.</p>\n\n<p>&nbsp;</p>\n<p><strong class=\"example\">Example:</strong></p>\n\n<div class=\"example-block\">\n<p><strong>Input:</strong></p>\n\n<p>Servers table:</p>\n\n<pre class=\"example-io\">\n+-----------+---------------------+----------------+\n| server_id | status_time | session_status |\n+-----------+---------------------+----------------+\n| 3 | 2023-11-04 16:29:47 | start |\n| 3 | 2023-11-05 01:49:47 | stop |\n| 3 | 2023-11-25 01:37:08 | start |\n| 3 | 2023-11-25 03:50:08 | stop |\n| 1 | 2023-11-13 03:05:31 | start |\n| 1 | 2023-11-13 11:10:31 | stop |\n| 4 | 2023-11-29 15:11:17 | start |\n| 4 | 2023-11-29 15:42:17 | stop |\n| 4 | 2023-11-20 00:31:44 | start |\n| 4 | 2023-11-20 07:03:44 | stop |\n| 1 | 2023-11-20 00:27:11 | start |\n| 1 | 2023-11-20 01:41:11 | stop |\n| 3 | 2023-11-04 23:16:48 | start |\n| 3 | 2023-11-05 01:15:48 | stop |\n| 4 | 2023-11-30 15:09:18 | start |\n| 4 | 2023-11-30 20:48:18 | stop |\n| 4 | 2023-11-25 21:09:06 | start |\n| 4 | 2023-11-26 04:58:06 | stop |\n| 5 | 2023-11-16 19:42:22 | start |\n| 5 | 2023-11-16 21:08:22 | stop |\n+-----------+---------------------+----------------+\n</pre>\n\n<p><strong>Output:</strong></p>\n\n<pre class=\"example-io\">\n+-------------------+\n| total_uptime_days |\n+-------------------+\n| 1 |\n+-------------------+\n</pre>\n\n<p><strong>Explanation:</strong></p>\n\n<ul>\n\t<li>For server ID 3:\n\t<ul>\n\t\t<li>From 2023-11-04 16:29:47 to 2023-11-05 01:49:47: ~9.3 hours</li>\n\t\t<li>From 2023-11-25 01:37:08 to 2023-11-25 03:50:08: ~2.2 hours</li>\n\t\t<li>From 2023-11-04 23:16:48 to 2023-11-05 01:15:48: ~1.98 hours</li>\n\t</ul>\n\tTotal for server 3: ~13.48 hours</li>\n\t<li>For server ID 1:\n\t<ul>\n\t\t<li>From 2023-11-13 03:05:31 to 2023-11-13 11:10:31: ~8 hours</li>\n\t\t<li>From 2023-11-20 00:27:11 to 2023-11-20 01:41:11: ~1.23 hours</li>\n\t</ul>\n\tTotal for server 1: ~9.23 hours</li>\n\t<li>For server ID 4:\n\t<ul>\n\t\t<li>From 2023-11-29 15:11:17 to 2023-11-29 15:42:17: ~0.52 hours</li>\n\t\t<li>From 2023-11-20 00:31:44 to 2023-11-20 07:03:44: ~6.53 hours</li>\n\t\t<li>From 2023-11-30 15:09:18 to 2023-11-30 20:48:18: ~5.65 hours</li>\n\t\t<li>From 2023-11-25 21:09:06 to 2023-11-26 04:58:06: ~7.82 hours</li>\n\t</ul>\n\tTotal for server 4: ~20.52 hours</li>\n\t<li>For server ID 5:\n\t<ul>\n\t\t<li>From 2023-11-16 19:42:22 to 2023-11-16 21:08:22: ~1.43 hours</li>\n\t</ul>\n\tTotal for server 5: ~1.43 hours</li>\n</ul>\nThe accumulated runtime for all servers totals approximately 44.46 hours, equivalent to one full day plus some additional hours. However, since we consider only full days, the final output is rounded to 1 full day.</div>\n",
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 0,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"typescript\": false, \"bash\": false, \"php\": false, \"swift\": false, \"kotlin\": false, \"dart\": false, \"golang\": false, \"ruby\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"rust\": false, \"racket\": false, \"erlang\": false, \"elixir\": false, \"pythondata\": false, \"react\": false, \"vanillajs\": false, \"postgresql\": false}",
"topicTags": [],
"companyTagStats": null,
"codeSnippets": [
{
"lang": "MySQL",
"langSlug": "mysql",
"code": "# Write your MySQL query statement below",
"__typename": "CodeSnippetNode"
},
{
"lang": "MS SQL Server",
"langSlug": "mssql",
"code": "/* Write your T-SQL query statement below */",
"__typename": "CodeSnippetNode"
},
{
"lang": "Oracle",
"langSlug": "oraclesql",
"code": "/* Write your PL/SQL query statement below */",
"__typename": "CodeSnippetNode"
},
{
"lang": "Pandas",
"langSlug": "pythondata",
"code": "import pandas as pd\n\ndef server_utilization_time(servers: pd.DataFrame) -> pd.DataFrame:\n ",
"__typename": "CodeSnippetNode"
},
{
"lang": "PostgreSQL",
"langSlug": "postgresql",
"code": "-- Write your PostgreSQL query statement below",
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"16\", \"totalSubmission\": \"62\", \"totalAcceptedRaw\": 16, \"totalSubmissionRaw\": 62, \"acRate\": \"25.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Servers\": [\"server_id\", \"status_time\", \"session_status\"]}, \"rows\": {\"Servers\": [[4, \"2023-11-29 20:22:50\", \"start\"], [4, \"2023-11-30 04:19:50\", \"stop\"], [2, \"2023-11-18 21:23:09\", \"start\"], [2, \"2023-11-19 00:38:09\", \"stop\"], [5, \"2023-11-27 18:38:16\", \"start\"], [5, \"2023-11-28 02:46:16\", \"stop\"], [4, \"2023-11-27 06:46:42\", \"start\"], [4, \"2023-11-27 08:23:42\", \"stop\"], [5, \"2023-11-11 05:09:45\", \"start\"], [5, \"2023-11-11 06:42:45\", \"stop\"], [5, \"2023-11-27 23:05:58\", \"start\"], [5, \"2023-11-27 23:48:58\", \"stop\"], [5, \"2023-11-14 16:29:34\", \"start\"], [5, \"2023-11-14 19:11:34\", \"stop\"], [1, \"2023-11-02 19:14:15\", \"start\"], [1, \"2023-11-02 20:19:15\", \"stop\"], [5, \"2023-11-03 06:55:30\", \"start\"], [5, \"2023-11-03 11:03:30\", \"stop\"], [4, \"2023-11-02 16:53:28\", \"start\"], [4, \"2023-11-02 22:28:28\", \"stop\"], [2, \"2023-11-20 07:06:41\", \"start\"], [2, \"2023-11-20 15:58:41\", \"stop\"], [1, \"2023-11-22 10:42:35\", \"start\"], [1, \"2023-11-22 19:14:35\", \"stop\"], [3, \"2023-11-23 03:05:39\", \"start\"], [3, \"2023-11-23 10:54:39\", \"stop\"], [3, \"2023-11-15 20:04:15\", \"start\"], [3, \"2023-11-15 21:30:15\", \"stop\"], [3, \"2023-11-12 08:21:42\", \"start\"], [3, \"2023-11-12 17:07:42\", \"stop\"], [1, \"2023-11-02 02:33:24\", \"start\"], [1, \"2023-11-02 12:10:24\", \"stop\"], [4, \"2023-11-14 03:55:29\", \"start\"], [4, \"2023-11-14 08:53:29\", \"stop\"], [2, \"2023-11-04 00:36:53\", \"start\"], [2, \"2023-11-04 00:37:53\", \"stop\"], [4, \"2023-11-08 01:54:18\", \"start\"], [4, \"2023-11-08 09:56:18\", \"stop\"], [1, \"2023-11-24 14:28:11\", \"start\"], [1, \"2023-11-24 21:38:11\", \"stop\"], [3, \"2023-11-20 22:55:03\", \"start\"], [3, \"2023-11-21 02:19:03\", \"stop\"], [3, \"2023-11-12 03:10:22\", \"start\"], [3, \"2023-11-12 08:29:22\", \"stop\"], [2, \"2023-11-02 14:55:46\", \"start\"], [2, \"2023-11-02 16:56:46\", \"stop\"], [1, \"2023-11-09 03:40:44\", \"start\"], [1, \"2023-11-09 03:52:44\", \"stop\"], [5, \"2023-11-16 17:43:28\", \"start\"], [5, \"2023-11-16 20:45:28\", \"stop\"], [2, \"2023-11-08 16:17:24\", \"start\"], [2, \"2023-11-09 00:59:24\", \"stop\"], [4, \"2023-11-25 04:46:06\", \"start\"], [4, \"2023-11-25 11:56:06\", \"stop\"], [2, \"2023-11-05 14:22:34\", \"start\"], [2, \"2023-11-05 21:33:34\", \"stop\"], [1, \"2023-11-02 09:49:22\", \"start\"], [1, \"2023-11-02 15:01:22\", \"stop\"], [5, \"2023-11-08 06:49:10\", \"start\"], [5, \"2023-11-08 13:33:10\", \"stop\"], [1, \"2023-11-22 21:00:23\", \"start\"], [1, \"2023-11-22 22:43:23\", \"stop\"], [3, \"2023-11-06 07:45:50\", \"start\"], [3, \"2023-11-06 15:18:50\", \"stop\"], [3, \"2023-11-02 22:13:17\", \"start\"], [3, \"2023-11-03 03:50:17\", \"stop\"], [1, \"2023-11-14 02:40:20\", \"start\"], [1, \"2023-11-14 03:57:20\", \"stop\"], [1, \"2023-11-08 21:13:00\", \"start\"], [1, \"2023-11-09 01:22:00\", \"stop\"], [5, \"2023-11-21 13:25:22\", \"start\"], [5, \"2023-11-21 19:46:22\", \"stop\"], [5, \"2023-11-16 04:37:55\", \"start\"], [5, \"2023-11-16 12:53:55\", \"stop\"], [2, \"2023-11-06 14:03:26\", \"start\"], [2, \"2023-11-06 17:11:26\", \"stop\"], [2, \"2023-11-11 08:18:54\", \"start\"], [2, \"2023-11-11 12:34:54\", \"stop\"], [2, \"2023-11-07 22:54:01\", \"start\"], [2, \"2023-11-08 08:22:01\", \"stop\"], [5, \"2023-11-23 14:08:03\", \"start\"], [5, \"2023-11-23 22:23:03\", \"stop\"], [1, \"2023-11-04 15:20:41\", \"start\"], [1, \"2023-11-04 16:09:41\", \"stop\"], [3, \"2023-11-05 01:24:32\", \"start\"], [3, \"2023-11-05 10:09:32\", \"stop\"], [4, \"2023-11-09 14:15:29\", \"start\"], [4, \"2023-11-09 18:39:29\", \"stop\"], [3, \"2023-11-28 21:43:00\", \"start\"], [3, \"2023-11-29 06:06:00\", \"stop\"], [2, \"2023-11-18 06:23:14\", \"start\"], [2, \"2023-11-18 07:34:14\", \"stop\"], [5, \"2023-11-09 17:27:02\", \"start\"], [5, \"2023-11-10 03:00:02\", \"stop\"], [2, \"2023-11-21 02:41:57\", \"start\"], [2, \"2023-11-21 07:28:57\", \"stop\"], [3, \"2023-11-08 00:36:12\", \"start\"], [3, \"2023-11-08 01:47:12\", \"stop\"], [1, \"2023-11-15 16:13:39\", \"start\"], [1, \"2023-11-15 20:29:39\", \"stop\"], [3, \"2023-11-03 06:25:01\", \"start\"], [3, \"2023-11-03 11:14:01\", \"stop\"], [1, \"2023-11-18 20:49:55\", \"start\"], [1, \"2023-11-18 23:04:55\", \"stop\"], [3, \"2023-11-13 05:02:21\", \"start\"], [3, \"2023-11-13 12:44:21\", \"stop\"], [2, \"2023-11-23 19:00:11\", \"start\"], [2, \"2023-11-24 04:59:11\", \"stop\"], [4, \"2023-11-20 01:16:38\", \"start\"], [4, \"2023-11-20 01:35:38\", \"stop\"], [1, \"2023-11-13 11:21:08\", \"start\"], [1, \"2023-11-13 11:56:08\", \"stop\"], [4, \"2023-11-21 23:09:45\", \"start\"], [4, \"2023-11-22 00:26:45\", \"stop\"], [2, \"2023-11-04 11:19:31\", \"start\"], [2, \"2023-11-04 16:46:31\", \"stop\"]]}}",
"metaData": "{\"mysql\":[\"Create table if not exists Servers ( server_id int, status_time timestamp, session_status ENUM ('start','stop'))\"],\"mssql\":[\"Create table Servers (server_id int, status_time datetime, session_status varchar(20) NOT NULL CHECK (session_status in ('start','stop')))\"],\"oraclesql\":[\"Create table Servers (server_id int, status_time date, session_status varchar(20) NOT NULL CHECK (session_status in ('start','stop')))\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"],\"database\":true,\"name\":\"server_utilization_time\",\"postgresql\":[\"Create table Servers (server_id int, status_time timestamp, session_status varchar(20) NOT NULL CHECK (session_status in ('start','stop')))\"],\"pythondata\":[\"Servers = pd.DataFrame(columns=['server_id', 'status_time', 'session_status'], dtype={'server_id': 'int', 'status_time': 'datetime64[ns]', 'session_status': pd.CategoricalDtype(categories=['start', 'stop'])})\\n\"],\"database_schema\":{\"Servers\":{\"server_id\":\"INT\",\"status_time\":\"TIMESTAMP\",\"session_status\":\"ENUM('start', 'stop')\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table if not exists Servers ( server_id int, status_time timestamp, session_status ENUM ('start','stop'))",
"Truncate table Servers",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-29 20:22:50', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-30 04:19:50', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-18 21:23:09', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-19 00:38:09', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-27 18:38:16', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-28 02:46:16', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-27 06:46:42', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-27 08:23:42', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-11 05:09:45', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-11 06:42:45', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-27 23:05:58', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-27 23:48:58', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-14 16:29:34', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-14 19:11:34', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-02 19:14:15', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-02 20:19:15', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-03 06:55:30', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-03 11:03:30', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-02 16:53:28', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-02 22:28:28', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-20 07:06:41', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-20 15:58:41', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-22 10:42:35', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-22 19:14:35', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-23 03:05:39', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-23 10:54:39', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-15 20:04:15', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-15 21:30:15', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-12 08:21:42', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-12 17:07:42', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-02 02:33:24', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-02 12:10:24', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-14 03:55:29', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-14 08:53:29', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-04 00:36:53', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-04 00:37:53', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-08 01:54:18', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-08 09:56:18', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-24 14:28:11', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-24 21:38:11', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-20 22:55:03', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-21 02:19:03', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-12 03:10:22', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-12 08:29:22', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-02 14:55:46', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-02 16:56:46', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-09 03:40:44', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-09 03:52:44', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-16 17:43:28', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-16 20:45:28', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-08 16:17:24', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-09 00:59:24', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-25 04:46:06', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-25 11:56:06', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-05 14:22:34', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-05 21:33:34', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-02 09:49:22', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-02 15:01:22', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-08 06:49:10', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-08 13:33:10', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-22 21:00:23', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-22 22:43:23', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-06 07:45:50', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-06 15:18:50', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-02 22:13:17', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-03 03:50:17', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-14 02:40:20', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-14 03:57:20', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-08 21:13:00', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-09 01:22:00', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-21 13:25:22', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-21 19:46:22', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-16 04:37:55', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-16 12:53:55', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-06 14:03:26', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-06 17:11:26', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-11 08:18:54', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-11 12:34:54', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-07 22:54:01', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-08 08:22:01', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-23 14:08:03', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-23 22:23:03', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-04 15:20:41', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-04 16:09:41', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-05 01:24:32', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-05 10:09:32', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-09 14:15:29', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-09 18:39:29', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-28 21:43:00', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-29 06:06:00', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-18 06:23:14', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-18 07:34:14', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-09 17:27:02', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('5', '2023-11-10 03:00:02', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-21 02:41:57', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-21 07:28:57', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-08 00:36:12', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-08 01:47:12', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-15 16:13:39', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-15 20:29:39', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-03 06:25:01', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-03 11:14:01', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-18 20:49:55', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-18 23:04:55', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-13 05:02:21', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('3', '2023-11-13 12:44:21', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-23 19:00:11', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-24 04:59:11', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-20 01:16:38', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-20 01:35:38', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-13 11:21:08', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('1', '2023-11-13 11:56:08', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-21 23:09:45', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('4', '2023-11-22 00:26:45', 'stop')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-04 11:19:31', 'start')",
"insert into Servers (server_id, status_time, session_status) values ('2', '2023-11-04 16:46:31', 'stop')"
],
"enableRunCode": true,
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\": {\"Servers\": [\"server_id\", \"status_time\", \"session_status\"]}, \"rows\": {\"Servers\": [[4, \"2023-11-29 20:22:50\", \"start\"], [4, \"2023-11-30 04:19:50\", \"stop\"], [2, \"2023-11-18 21:23:09\", \"start\"], [2, \"2023-11-19 00:38:09\", \"stop\"], [5, \"2023-11-27 18:38:16\", \"start\"], [5, \"2023-11-28 02:46:16\", \"stop\"], [4, \"2023-11-27 06:46:42\", \"start\"], [4, \"2023-11-27 08:23:42\", \"stop\"], [5, \"2023-11-11 05:09:45\", \"start\"], [5, \"2023-11-11 06:42:45\", \"stop\"], [5, \"2023-11-27 23:05:58\", \"start\"], [5, \"2023-11-27 23:48:58\", \"stop\"], [5, \"2023-11-14 16:29:34\", \"start\"], [5, \"2023-11-14 19:11:34\", \"stop\"], [1, \"2023-11-02 19:14:15\", \"start\"], [1, \"2023-11-02 20:19:15\", \"stop\"], [5, \"2023-11-03 06:55:30\", \"start\"], [5, \"2023-11-03 11:03:30\", \"stop\"], [4, \"2023-11-02 16:53:28\", \"start\"], [4, \"2023-11-02 22:28:28\", \"stop\"], [2, \"2023-11-20 07:06:41\", \"start\"], [2, \"2023-11-20 15:58:41\", \"stop\"], [1, \"2023-11-22 10:42:35\", \"start\"], [1, \"2023-11-22 19:14:35\", \"stop\"], [3, \"2023-11-23 03:05:39\", \"start\"], [3, \"2023-11-23 10:54:39\", \"stop\"], [3, \"2023-11-15 20:04:15\", \"start\"], [3, \"2023-11-15 21:30:15\", \"stop\"], [3, \"2023-11-12 08:21:42\", \"start\"], [3, \"2023-11-12 17:07:42\", \"stop\"], [1, \"2023-11-02 02:33:24\", \"start\"], [1, \"2023-11-02 12:10:24\", \"stop\"], [4, \"2023-11-14 03:55:29\", \"start\"], [4, \"2023-11-14 08:53:29\", \"stop\"], [2, \"2023-11-04 00:36:53\", \"start\"], [2, \"2023-11-04 00:37:53\", \"stop\"], [4, \"2023-11-08 01:54:18\", \"start\"], [4, \"2023-11-08 09:56:18\", \"stop\"], [1, \"2023-11-24 14:28:11\", \"start\"], [1, \"2023-11-24 21:38:11\", \"stop\"], [3, \"2023-11-20 22:55:03\", \"start\"], [3, \"2023-11-21 02:19:03\", \"stop\"], [3, \"2023-11-12 03:10:22\", \"start\"], [3, \"2023-11-12 08:29:22\", \"stop\"], [2, \"2023-11-02 14:55:46\", \"start\"], [2, \"2023-11-02 16:56:46\", \"stop\"], [1, \"2023-11-09 03:40:44\", \"start\"], [1, \"2023-11-09 03:52:44\", \"stop\"], [5, \"2023-11-16 17:43:28\", \"start\"], [5, \"2023-11-16 20:45:28\", \"stop\"], [2, \"2023-11-08 16:17:24\", \"start\"], [2, \"2023-11-09 00:59:24\", \"stop\"], [4, \"2023-11-25 04:46:06\", \"start\"], [4, \"2023-11-25 11:56:06\", \"stop\"], [2, \"2023-11-05 14:22:34\", \"start\"], [2, \"2023-11-05 21:33:34\", \"stop\"], [1, \"2023-11-02 09:49:22\", \"start\"], [1, \"2023-11-02 15:01:22\", \"stop\"], [5, \"2023-11-08 06:49:10\", \"start\"], [5, \"2023-11-08 13:33:10\", \"stop\"], [1, \"2023-11-22 21:00:23\", \"start\"], [1, \"2023-11-22 22:43:23\", \"stop\"], [3, \"2023-11-06 07:45:50\", \"start\"], [3, \"2023-11-06 15:18:50\", \"stop\"], [3, \"2023-11-02 22:13:17\", \"start\"], [3, \"2023-11-03 03:50:17\", \"stop\"], [1, \"2023-11-14 02:40:20\", \"start\"], [1, \"2023-11-14 03:57:20\", \"stop\"], [1, \"2023-11-08 21:13:00\", \"start\"], [1, \"2023-11-09 01:22:00\", \"stop\"], [5, \"2023-11-21 13:25:22\", \"start\"], [5, \"2023-11-21 19:46:22\", \"stop\"], [5, \"2023-11-16 04:37:55\", \"start\"], [5, \"2023-11-16 12:53:55\", \"stop\"], [2, \"2023-11-06 14:03:26\", \"start\"], [2, \"2023-11-06 17:11:26\", \"stop\"], [2, \"2023-11-11 08:18:54\", \"start\"], [2, \"2023-11-11 12:34:54\", \"stop\"], [2, \"2023-11-07 22:54:01\", \"start\"], [2, \"2023-11-08 08:22:01\", \"stop\"], [5, \"2023-11-23 14:08:03\", \"start\"], [5, \"2023-11-23 22:23:03\", \"stop\"], [1, \"2023-11-04 15:20:41\", \"start\"], [1, \"2023-11-04 16:09:41\", \"stop\"], [3, \"2023-11-05 01:24:32\", \"start\"], [3, \"2023-11-05 10:09:32\", \"stop\"], [4, \"2023-11-09 14:15:29\", \"start\"], [4, \"2023-11-09 18:39:29\", \"stop\"], [3, \"2023-11-28 21:43:00\", \"start\"], [3, \"2023-11-29 06:06:00\", \"stop\"], [2, \"2023-11-18 06:23:14\", \"start\"], [2, \"2023-11-18 07:34:14\", \"stop\"], [5, \"2023-11-09 17:27:02\", \"start\"], [5, \"2023-11-10 03:00:02\", \"stop\"], [2, \"2023-11-21 02:41:57\", \"start\"], [2, \"2023-11-21 07:28:57\", \"stop\"], [3, \"2023-11-08 00:36:12\", \"start\"], [3, \"2023-11-08 01:47:12\", \"stop\"], [1, \"2023-11-15 16:13:39\", \"start\"], [1, \"2023-11-15 20:29:39\", \"stop\"], [3, \"2023-11-03 06:25:01\", \"start\"], [3, \"2023-11-03 11:14:01\", \"stop\"], [1, \"2023-11-18 20:49:55\", \"start\"], [1, \"2023-11-18 23:04:55\", \"stop\"], [3, \"2023-11-13 05:02:21\", \"start\"], [3, \"2023-11-13 12:44:21\", \"stop\"], [2, \"2023-11-23 19:00:11\", \"start\"], [2, \"2023-11-24 04:59:11\", \"stop\"], [4, \"2023-11-20 01:16:38\", \"start\"], [4, \"2023-11-20 01:35:38\", \"stop\"], [1, \"2023-11-13 11:21:08\", \"start\"], [1, \"2023-11-13 11:56:08\", \"stop\"], [4, \"2023-11-21 23:09:45\", \"start\"], [4, \"2023-11-22 00:26:45\", \"stop\"], [2, \"2023-11-04 11:19:31\", \"start\"], [2, \"2023-11-04 16:46:31\", \"stop\"]]}}",
"__typename": "QuestionNode"
}
}
}