using bq cli to generate thelook order-items by date

This is a bq cli command that we can use to generate sales data


bq query \

--use_legacy_sql=false \

--format=csv \

'SELECT order_id, product_id, user_id, inventory_item_id, sale_price, status, DATE(created_at) AS sales_date

 FROM `bigquery-public-data.thelook_ecommerce.order_items`

 WHERE DATE(created_at) = "2025-09-19"' \

> sales-20250919.csv

Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type