1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]apples-oranges.json
2022-05-02 23:44:12 +08:00

64 lines
4.1 KiB
JSON

{
"data": {
"question": {
"questionId": "1578",
"questionFrontendId": "1445",
"categoryTitle": "Database",
"boundTopicId": 248907,
"title": "Apples & Oranges",
"titleSlug": "apples-oranges",
"content": null,
"translatedTitle": "苹果和桔子",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 21,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.7K\", \"totalSubmission\": \"6.6K\", \"totalAcceptedRaw\": 5700, \"totalSubmissionRaw\": 6622, \"acRate\": \"86.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Sales\":[\"sale_date\",\"fruit\",\"sold_num\"]},\"rows\":{\"Sales\":[[\"2020-05-01\",\"apples\",10],[\"2020-05-01\",\"oranges\",8],[\"2020-05-02\",\"apples\",15],[\"2020-05-02\",\"oranges\",15],[\"2020-05-03\",\"apples\",20],[\"2020-05-03\",\"oranges\",0],[\"2020-05-04\",\"apples\",15],[\"2020-05-04\",\"oranges\",16]]}}\r",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sales (sale_date date, fruit ENUM('apples', 'oranges'), sold_num int)\"\n ],\n \"mssql\": [\n \"Create Table Sales (sale_date date, fruit varchar(10) NOT NULL CHECK (fruit IN ('apples', 'oranges')), sold_num int)\"\n ],\n \"oraclesql\": [\n \"Create Table Sales (sale_date date, fruit varchar(10) NOT NULL CHECK (fruit IN ('apples', 'oranges')), sold_num int)\",\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 Sales (sale_date date, fruit ENUM('apples', 'oranges'), sold_num int)",
"Truncate table Sales",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-01', 'apples', '10')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-01', 'oranges', '8')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-02', 'apples', '15')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-02', 'oranges', '15')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-03', 'apples', '20')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-03', 'oranges', '0')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-04', 'apples', '15')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-04', 'oranges', '16')"
],
"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>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Sales\":[\"sale_date\",\"fruit\",\"sold_num\"]},\"rows\":{\"Sales\":[[\"2020-05-01\",\"apples\",10],[\"2020-05-01\",\"oranges\",8],[\"2020-05-02\",\"apples\",15],[\"2020-05-02\",\"oranges\",15],[\"2020-05-03\",\"apples\",20],[\"2020-05-03\",\"oranges\",0],[\"2020-05-04\",\"apples\",15],[\"2020-05-04\",\"oranges\",16]]}}",
"__typename": "QuestionNode"
}
}
}