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]npv-queries.json

73 lines
4.2 KiB
JSON
Raw Normal View History

2022-03-27 20:37:52 +08:00
{
"data": {
"question": {
"questionId": "1551",
"questionFrontendId": "1421",
"categoryTitle": "Database",
"boundTopicId": 217289,
"title": "NPV Queries",
"titleSlug": "npv-queries",
"content": null,
"translatedTitle": "净现值查询",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 5,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
2022-05-02 23:44:12 +08:00
"stats": "{\"totalAccepted\": \"4.3K\", \"totalSubmission\": \"5.9K\", \"totalAcceptedRaw\": 4283, \"totalSubmissionRaw\": 5937, \"acRate\": \"72.1%\"}",
2022-03-27 20:37:52 +08:00
"hints": [],
"solution": null,
"status": null,
2022-05-02 23:44:12 +08:00
"sampleTestCase": "{\"headers\":{\"NPV\":[\"id\",\"year\",\"npv\"],\"Queries\":[\"id\",\"year\"]},\"rows\":{\"NPV\":[[1,2018,100],[7,2020,30],[13,2019,40],[1,2019,113],[2,2008,121],[3,2009,21],[11,2020,99],[7,2019,0]],\"Queries\":[[1,2019],[2,2008],[3,2009],[7,2018],[7,2019],[7,2020],[13,2019]]}}\r",
2022-03-27 20:37:52 +08:00
"metaData": "{\n \"mysql\": [\n \"Create Table If Not Exists NPV (id int, year int, npv int)\",\n \"Create Table If Not Exists Queries (id int, year int)\"\n ],\n \"mssql\": [\n \"Create Table NPV (id int, year int, npv int)\",\n \"Create Table Queries (id int, year int)\"\n ],\n \"oraclesql\": [\n \"Create Table NPV (id int, year int, npv int)\",\n \"Create Table Queries (id int, year int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create Table If Not Exists NPV (id int, year int, npv int)",
"Create Table If Not Exists Queries (id int, year int)",
"Truncate table NPV",
"insert into NPV (id, year, npv) values ('1', '2018', '100')",
"insert into NPV (id, year, npv) values ('7', '2020', '30')",
"insert into NPV (id, year, npv) values ('13', '2019', '40')",
"insert into NPV (id, year, npv) values ('1', '2019', '113')",
"insert into NPV (id, year, npv) values ('2', '2008', '121')",
"insert into NPV (id, year, npv) values ('3', '2009', '21')",
"insert into NPV (id, year, npv) values ('11', '2020', '99')",
"insert into NPV (id, year, npv) values ('7', '2019', '0')",
"Truncate table Queries",
"insert into Queries (id, year) values ('1', '2019')",
"insert into Queries (id, year) values ('2', '2008')",
"insert into Queries (id, year) values ('3', '2009')",
"insert into Queries (id, year) values ('7', '2018')",
"insert into Queries (id, year) values ('7', '2019')",
"insert into Queries (id, year) values ('7', '2020')",
"insert into Queries (id, year) values ('13', '2019')"
],
"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\":{\"NPV\":[\"id\",\"year\",\"npv\"],\"Queries\":[\"id\",\"year\"]},\"rows\":{\"NPV\":[[1,2018,100],[7,2020,30],[13,2019,40],[1,2019,113],[2,2008,121],[3,2009,21],[11,2020,99],[7,2019,0]],\"Queries\":[[1,2019],[2,2008],[3,2009],[7,2018],[7,2019],[7,2020],[13,2019]]}}",
"__typename": "QuestionNode"
}
}
}