The Most Recent Three Orders
['the-most-recent-orders-for-each-product']
['Create table If Not Exists Customers (customer_id int, name varchar(10))', 'Create table If Not Exists Orders (order_id int, order_date date, customer_id int, cost int)', 'Truncate table Customers', "insert into Customers (customer_id, name) values ('1', 'Winston')", "insert into Customers (customer_id, name) values ('2', 'Jonathan')", "insert into Customers (customer_id, name) values ('3', 'Annabelle')", "insert into Customers (customer_id, name) values ('4', 'Marwan')", "insert into Customers (customer_id, name) values ('5', 'Khaled')", 'Truncate table Orders', "insert into Orders (order_id, order_date, customer_id, cost) values ('1', '2020-07-31', '1', '30')", "insert into Orders (order_id, order_date, customer_id, cost) values ('2', '2020-7-30', '2', '40')", "insert into Orders (order_id, order_date, customer_id, cost) values ('3', '2020-07-31', '3', '70')", "insert into Orders (order_id, order_date, customer_id, cost) values ('4', '2020-07-29', '4', '100')", "insert into Orders (order_id, order_date, customer_id, cost) values ('5', '2020-06-10', '1', '1010')", "insert into Orders (order_id, order_date, customer_id, cost) values ('6', '2020-08-01', '2', '102')", "insert into Orders (order_id, order_date, customer_id, cost) values ('7', '2020-08-01', '3', '111')", "insert into Orders (order_id, order_date, customer_id, cost) values ('8', '2020-08-03', '1', '99')", "insert into Orders (order_id, order_date, customer_id, cost) values ('9', '2020-08-07', '2', '32')", "insert into Orders (order_id, order_date, customer_id, cost) values ('10', '2020-07-15', '1', '2')"]
{"mysql": ["Create table If Not Exists Customers (customer_id int, name varchar(10))", "Create table If Not Exists Orders (order_id int, order_date date, customer_id int, cost int)"], "mssql": ["Create table Customers (customer_id int, name varchar(10))", "Create table Orders (order_id int, order_date date, customer_id int, cost int)"], "oraclesql": ["Create table Customers (customer_id int, name varchar(10))", "Create table Orders (order_id int, order_date date, customer_id int, cost int)", "ALTER SESSION SET nls_date_format='YYYY-MM-DD'"], "database": true, "name": "recent_three_orders", "pythondata": ["Customers = pd.DataFrame([], columns=['customer_id', 'name']).astype({'customer_id':'Int64', 'name':'object'})", "Orders = pd.DataFrame([], columns=['order_id', 'order_date', 'customer_id', 'cost']).astype({'order_id':'Int64', 'order_date':'datetime64[ns]', 'customer_id':'Int64', 'cost':'Int64'})"], "postgresql": ["\nCreate table If Not Exists Customers (customer_id int, name varchar(10))\n", "Create table If Not Exists Orders (order_id int, order_date date, customer_id int, cost int)"], "database_schema": {"Customers": {"customer_id": "INT", "name": "VARCHAR(10)"}, "Orders": {"order_id": "INT", "order_date": "DATE", "customer_id": "INT", "cost": "INT"}}}
{"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>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']