2022-03-27 18:27:43 +08:00
{
"data" : {
"question" : {
"questionId" : "1749" ,
"questionFrontendId" : "1607" ,
"boundTopicId" : null ,
"title" : "Sellers With No Sales" ,
"titleSlug" : "sellers-with-no-sales" ,
"content" : null ,
"translatedTitle" : null ,
"translatedContent" : null ,
"isPaidOnly" : true ,
"difficulty" : "Easy" ,
"likes" : 51 ,
"dislikes" : 8 ,
"isLiked" : null ,
"similarQuestions" : "[{\"title\": \"Customer Who Visited but Did Not Make Any Transactions\", \"titleSlug\": \"customer-who-visited-but-did-not-make-any-transactions\", \"difficulty\": \"Easy\", \"translatedTitle\": null}]" ,
"exampleTestcases" : "{\"headers\": {\"Customer\": [\"customer_id\", \"customer_name\"], \"Orders\": [\"order_id\", \"sale_date\", \"order_cost\", \"customer_id\", \"seller_id\"], \"Seller\": [\"seller_id\", \"seller_name\"]}, \"rows\": {\"Customer\": [[101, \"Alice\"], [102, \"Bob\"], [103, \"Charlie\"]], \"Orders\": [[1, \"2020-03-01\", 1500, 101, 1], [2, \"2020-05-25\", 2400, 102, 2], [3, \"2019-05-25\", 800, 101, 3], [4, \"2020-09-13\", 1000, 103, 2], [5, \"2019-02-11\", 700, 101, 2]], \"Seller\": [[1, \"Daniel\"], [2, \"Elizabeth\"], [3, \"Frank\"]]}}" ,
"categoryTitle" : "Database" ,
"contributors" : [ ] ,
"topicTags" : [
{
"name" : "Database" ,
"slug" : "database" ,
"translatedName" : null ,
"__typename" : "TopicTagNode"
}
] ,
"companyTagStats" : null ,
"codeSnippets" : null ,
2022-03-29 15:21:05 +08:00
"stats" : "{\"totalAccepted\": \"12.6K\", \"totalSubmission\": \"23.1K\", \"totalAcceptedRaw\": 12584, \"totalSubmissionRaw\": 23090, \"acRate\": \"54.5%\"}" ,
2022-03-27 18:27:43 +08:00
"hints" : [ ] ,
"solution" : null ,
"status" : null ,
"sampleTestCase" : "{\"headers\": {\"Customer\": [\"customer_id\", \"customer_name\"], \"Orders\": [\"order_id\", \"sale_date\", \"order_cost\", \"customer_id\", \"seller_id\"], \"Seller\": [\"seller_id\", \"seller_name\"]}, \"rows\": {\"Customer\": [[101, \"Alice\"], [102, \"Bob\"], [103, \"Charlie\"]], \"Orders\": [[1, \"2020-03-01\", 1500, 101, 1], [2, \"2020-05-25\", 2400, 102, 2], [3, \"2019-05-25\", 800, 101, 3], [4, \"2020-09-13\", 1000, 103, 2], [5, \"2019-02-11\", 700, 101, 2]], \"Seller\": [[1, \"Daniel\"], [2, \"Elizabeth\"], [3, \"Frank\"]]}}" ,
"metaData" : "{\n \"mysql\": [\n \"Create table If Not Exists Customer (customer_id int, customer_name varchar(20))\",\n \"Create table If Not Exists Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\\n\",\n \"Create table If Not Exists Seller (seller_id int, seller_name varchar(20))\\n\"\n ],\n \"mssql\": [\n \"Create table Customer (customer_id int, customer_name varchar(20))\\n\",\n \"Create table Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\\n\",\n \"Create table Seller (seller_id int, seller_name varchar(20))\\n\"\n ],\n \"oraclesql\": [\n \"Create table Customer (customer_id int, customer_name varchar(20))\\n\",\n \"Create table Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\\n\",\n \"Create table Seller (seller_id int, seller_name varchar(20))\\n\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\\n\"\n ],\n \"database\": true,\n \"manual\": false\n}" ,
"judgerAvailable" : true ,
"judgeType" : "large" ,
"mysqlSchemas" : [
"Create table If Not Exists Customer (customer_id int, customer_name varchar(20))" ,
"Create table If Not Exists Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\n" ,
"Create table If Not Exists Seller (seller_id int, seller_name varchar(20))\n" ,
"Truncate table Customer" ,
"insert into Customer (customer_id, customer_name) values ('101', 'Alice')" ,
"insert into Customer (customer_id, customer_name) values ('102', 'Bob')" ,
"insert into Customer (customer_id, customer_name) values ('103', 'Charlie')" ,
"Truncate table Orders" ,
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('1', '2020-03-01', '1500', '101', '1')" ,
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('2', '2020-05-25', '2400', '102', '2')" ,
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('3', '2019-05-25', '800', '101', '3')" ,
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('4', '2020-09-13', '1000', '103', '2')" ,
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('5', '2019-02-11', '700', '101', '2')" ,
"Truncate table Seller" ,
"insert into Seller (seller_id, seller_name) values ('1', 'Daniel')" ,
"insert into Seller (seller_id, seller_name) values ('2', 'Elizabeth')" ,
"insert into Seller (seller_id, seller_name) values ('3', 'Frank')"
] ,
"enableRunCode" : true ,
"enableTestMode" : false ,
"enableDebugger" : false ,
"envInfo" : "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"]}" ,
"libraryUrl" : null ,
"adminUrl" : null ,
"challengeQuestion" : null ,
"__typename" : "QuestionNode"
}
}
}