Sales by Day of the Week
[]
['Create table If Not Exists Orders (order_id int, customer_id int, order_date date, item_id varchar(30), quantity int)', 'Create table If Not Exists Items (item_id varchar(30), item_name varchar(30), item_category varchar(30))', 'Truncate table Orders', "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('1', '1', '2020-06-01', '1', '10')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('2', '1', '2020-06-08', '2', '10')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('3', '2', '2020-06-02', '1', '5')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('4', '3', '2020-06-03', '3', '5')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('5', '4', '2020-06-04', '4', '1')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('6', '4', '2020-06-05', '5', '5')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('7', '5', '2020-06-05', '1', '10')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('8', '5', '2020-06-14', '4', '5')", "insert into Orders (order_id, customer_id, order_date, item_id, quantity) values ('9', '5', '2020-06-21', '3', '5')", 'Truncate table Items', "insert into Items (item_id, item_name, item_category) values ('1', 'LC Alg. Book', 'Book')", "insert into Items (item_id, item_name, item_category) values ('2', 'LC DB. Book', 'Book')", "insert into Items (item_id, item_name, item_category) values ('3', 'LC SmarthPhone', 'Phone')", "insert into Items (item_id, item_name, item_category) values ('4', 'LC Phone 2020', 'Phone')", "insert into Items (item_id, item_name, item_category) values ('5', 'LC SmartGlass', 'Glasses')", "insert into Items (item_id, item_name, item_category) values ('6', 'LC T-Shirt XL', 'T-shirt')"]
{"mysql": ["Create table If Not Exists Orders (order_id int, customer_id int, order_date date, item_id varchar(30), quantity int)", "Create table If Not Exists Items (item_id varchar(30), item_name varchar(30), item_category varchar(30))"], "mssql": ["Create table Orders (order_id int, customer_id int, order_date date, item_id varchar(30), quantity int)", "Create table Items (item_id varchar(30), item_name varchar(30), item_category varchar(30))"], "oraclesql": ["Create table Orders (order_id int, customer_id int, order_date date, item_id varchar(30), quantity int)", "Create table Items (item_id varchar(30), item_name varchar(30), item_category varchar(30))", "ALTER SESSION SET nls_date_format='YYYY-MM-DD'"], "database": true, "name": "sales_by_day", "pythondata": ["Orders = pd.DataFrame([], columns=['order_id', 'customer_id', 'order_date', 'item_id', 'quantity']).astype({'order_id':'Int64', 'customer_id':'Int64', 'order_date':'datetime64[ns]', 'item_id':'object', 'quantity':'Int64'})", "Items = pd.DataFrame([], columns=['item_id', 'item_name', 'item_category']).astype({'item_id':'object', 'item_name':'object', 'item_category':'object'})"], "postgresql": ["\nCreate table If Not Exists Orders (order_id int, customer_id int, order_date date, item_id varchar(30), quantity int)", "Create table If Not Exists Items (item_id varchar(30), item_name varchar(30), item_category varchar(30))"], "database_schema": {"Orders": {"order_id": "INT", "customer_id": "INT", "order_date": "DATE", "item_id": "VARCHAR(30)", "quantity": "INT"}, "Items": {"item_id": "VARCHAR(30)", "item_name": "VARCHAR(30)", "item_category": "VARCHAR(30)"}}}
{"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']