{ "data": { "question": { "questionId": "2382", "questionFrontendId": "2253", "categoryTitle": "Database", "boundTopicId": 1447404, "title": "Dynamic Unpivoting of a Table", "titleSlug": "dynamic-unpivoting-of-a-table", "content": null, "translatedTitle": "动态取消表的旋转", "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 5, "dislikes": 0, "isLiked": null, "similarQuestions": "[{\"title\": \"Rearrange Products Table\", \"titleSlug\": \"rearrange-products-table\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u6bcf\\u4e2a\\u4ea7\\u54c1\\u5728\\u4e0d\\u540c\\u5546\\u5e97\\u7684\\u4ef7\\u683c\", \"isPaidOnly\": false}]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"466\", \"totalSubmission\": \"668\", \"totalAcceptedRaw\": 466, \"totalSubmissionRaw\": 668, \"acRate\": \"69.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Products\": [\"product_id\", \"LC_Store\", \"Nozama\", \"Shop\", \"Souq\"]}, \"rows\": {\"Products\": [[1, 100, null, 110, null], [2, null, 200, null, 190], [3, null, null, 1000, 1900]]}}", "metaData": "{\"mysql\": [], \"mssql\": [], \"oraclesql\": [], \"database\": true, \"manual\": true, \"name\": \"dynamic_unpivoting_of_a_table\"}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Truncate table Products", "insert into Products (product_id, LC_Store, Nozama, Shop, Souq) values ('1', '100', NULL, '110', NULL)", "insert into Products (product_id, LC_Store, Nozama, Shop, Souq) values ('2', NULL, '200', NULL, '190')", "insert into Products (product_id, LC_Store, Nozama, Shop, Souq) values ('3', NULL, NULL, '1000', '1900')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\" Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\" Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\": {\"Products\": [\"product_id\", \"LC_Store\", \"Nozama\", \"Shop\", \"Souq\"]}, \"rows\": {\"Products\": [[1, 100, null, 110, null], [2, null, 200, null, 190], [3, null, null, 1000, 1900]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"