Product Sales Analysis V
['product-sales-analysis-i', 'product-sales-analysis-ii', 'product-sales-analysis-iii']
['Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)', 'Create table If Not Exists Product (product_id int, price int)', 'Truncate table Sales', "insert into Sales (sale_id, product_id, user_id, quantity) values ('1', '1', '101', '10')", "insert into Sales (sale_id, product_id, user_id, quantity) values ('2', '2', '101', '1')", "insert into Sales (sale_id, product_id, user_id, quantity) values ('3', '3', '102', '3')", "insert into Sales (sale_id, product_id, user_id, quantity) values ('4', '3', '102', '2')", "insert into Sales (sale_id, product_id, user_id, quantity) values ('5', '2', '103', '3')", 'Truncate table Product', "insert into Product (product_id, price) values ('1', '10')", "insert into Product (product_id, price) values ('2', '25')", "insert into Product (product_id, price) values ('3', '15')"]
{"mysql": ["Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)", "Create table If Not Exists Product (product_id int, price int)"], "mssql": ["Create table Sales (sale_id int, product_id int, user_id int, quantity int)", "Create table Product (product_id int, price int)"], "oraclesql": ["Create table Sales (sale_id int, product_id int, user_id int, quantity int)", "Create table Product (product_id int, price int)"], "database": true, "name": "product_sales_analysis", "pythondata": ["Sales = pd.DataFrame([], columns=['sale_id', 'product_id', 'user_id', 'quantity']).astype({'sale_id':'Int64', 'product_id':'Int64', 'user_id':'Int64', 'quantity':'Int64'})", "Product = pd.DataFrame([], columns=['product_id', 'price']).astype({'product_id':'Int64', 'price':'Int64'})"], "postgresql": ["Create table If Not Exists Sales (sale_id int, product_id int, user_id int, quantity int)", "Create table If Not Exists Product (product_id int, price int)"], "database_schema": {"Sales": {"sale_id": "INT", "product_id": "INT", "user_id": "INT", "quantity": "INT"}, "Product": {"product_id": "INT", "price": "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']