1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-27 02:30:28 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]number-of-transactions-per-visit.json
2022-05-02 23:44:12 +08:00

76 lines
5.7 KiB
JSON

{
"data": {
"question": {
"questionId": "1467",
"questionFrontendId": "1336",
"categoryTitle": "Database",
"boundTopicId": 82627,
"title": "Number of Transactions per Visit",
"titleSlug": "number-of-transactions-per-visit",
"content": null,
"translatedTitle": "每次访问的交易次数",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 18,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"2.4K\", \"totalSubmission\": \"5.4K\", \"totalAcceptedRaw\": 2396, \"totalSubmissionRaw\": 5400, \"acRate\": \"44.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Visits\":[\"user_id\",\"visit_date\"],\"Transactions\":[\"user_id\",\"transaction_date\",\"amount\"]},\"rows\":{\"Visits\":[[1,\"2020-01-01\"],[2,\"2020-01-02\"],[12,\"2020-01-01\"],[19,\"2020-01-03\"],[1,\"2020-01-02\"],[2,\"2020-01-03\"],[1,\"2020-01-04\"],[7,\"2020-01-11\"],[9,\"2020-01-25\"],[8,\"2020-01-28\"]],\"Transactions\":[[1,\"2020-01-02\",120],[2,\"2020-01-03\",22],[7,\"2020-01-11\",232],[1,\"2020-01-04\",7],[9,\"2020-01-25\",33],[9,\"2020-01-25\",66],[8,\"2020-01-28\",1],[9,\"2020-01-25\",99]]}}\r",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Visits (user_id int, visit_date date)\",\n \"Create table If Not Exists Transactions (user_id int, transaction_date date, amount int)\"\n ],\n \"mssql\": [\n \"Create table Visits (user_id int, visit_date date)\",\n \"Create table Transactions (user_id int, transaction_date date, amount int)\"\n ],\n \"oraclesql\": [\n \"Create table Visits (user_id int, visit_date date)\",\n \"Create table Transactions (user_id int, transaction_date date, amount 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 Visits (user_id int, visit_date date)",
"Create table If Not Exists Transactions (user_id int, transaction_date date, amount int)",
"Truncate table Visits",
"insert into Visits (user_id, visit_date) values ('1', '2020-01-01')",
"insert into Visits (user_id, visit_date) values ('2', '2020-01-02')",
"insert into Visits (user_id, visit_date) values ('12', '2020-01-01')",
"insert into Visits (user_id, visit_date) values ('19', '2020-01-03')",
"insert into Visits (user_id, visit_date) values ('1', '2020-01-02')",
"insert into Visits (user_id, visit_date) values ('2', '2020-01-03')",
"insert into Visits (user_id, visit_date) values ('1', '2020-01-04')",
"insert into Visits (user_id, visit_date) values ('7', '2020-01-11')",
"insert into Visits (user_id, visit_date) values ('9', '2020-01-25')",
"insert into Visits (user_id, visit_date) values ('8', '2020-01-28')",
"Truncate table Transactions",
"insert into Transactions (user_id, transaction_date, amount) values ('1', '2020-01-02', '120')",
"insert into Transactions (user_id, transaction_date, amount) values ('2', '2020-01-03', '22')",
"insert into Transactions (user_id, transaction_date, amount) values ('7', '2020-01-11', '232')",
"insert into Transactions (user_id, transaction_date, amount) values ('1', '2020-01-04', '7')",
"insert into Transactions (user_id, transaction_date, amount) values ('9', '2020-01-25', '33')",
"insert into Transactions (user_id, transaction_date, amount) values ('9', '2020-01-25', '66')",
"insert into Transactions (user_id, transaction_date, amount) values ('8', '2020-01-28', '1')",
"insert into Transactions (user_id, transaction_date, amount) values ('9', '2020-01-25', '99')"
],
"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\":{\"Visits\":[\"user_id\",\"visit_date\"],\"Transactions\":[\"user_id\",\"transaction_date\",\"amount\"]},\"rows\":{\"Visits\":[[1,\"2020-01-01\"],[2,\"2020-01-02\"],[12,\"2020-01-01\"],[19,\"2020-01-03\"],[1,\"2020-01-02\"],[2,\"2020-01-03\"],[1,\"2020-01-04\"],[7,\"2020-01-11\"],[9,\"2020-01-25\"],[8,\"2020-01-28\"]],\"Transactions\":[[1,\"2020-01-02\",120],[2,\"2020-01-03\",22],[7,\"2020-01-11\",232],[1,\"2020-01-04\",7],[9,\"2020-01-25\",33],[9,\"2020-01-25\",66],[8,\"2020-01-28\",1],[9,\"2020-01-25\",99]]}}",
"__typename": "QuestionNode"
}
}
}