Skip to main content

Peliqan

LightSpeed eCom

Customer retention rate

SQL query for LightSpeed eCom

Calculate the percentage of customers who made repeat purchases.

SELECT COUNT(DISTINCT customer_id) AS total_customers, COUNT(DISTINCT customer_id) / COUNT(DISTINCT customer_id) AS retention_rate FROM orders WHERE order_date BETWEEN ‘start_date’ AND ‘end_date’

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.