Skip to main content

Peliqan

LightSpeed eCom

Customer lifetime value

SQL query for LightSpeed eCom

Calculate the average total sales value per customer.

SELECT customer_id, AVG(total_price) AS average_customer_lifetime_value FROM orders GROUP BY customer_id

LightSpeed eCom data model

LightSpeed eCom
Orders

LightSpeed eCom
Carts

LightSpeed eCom
Products

LightSpeed eCom
Customers

LightSpeed eCom
Discount Coupons

LightSpeed eCom
Subscriptions

LightSpeed eCom
Categories

LightSpeed eCom
Customer Groups

Ready to get instant access to all your company data ?​

Connect 300+ sources, serve any BI tool, and give every AI agent one governed endpoint to read, and write back where the app supports it.