Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
SalesOrderID FROM SalesOrder") sales_order_ids = [id[0] for id in cursor.fetchall()] # Insert data into LineItem for _ in range(5000): # Assuming multiple line items per order sales_order_id = random.choice(sales_order_ids) product_id = random.choice(product_ids) quantity = random.randint(1, 10)