Answer the question
In order to leave comments, you need to log in
SQL how to count the number of visits?
Hello!
I have purchase data:
customer ID (ID_Customer, time of purchase (date_transactions, store number (id_store), receipt ID (id_receipt).
Please tell me how to calculate the number of visits by the customer to the store?
He could buy several checks for one trip to shop.So a visit is a purchase within one hour in one
store.I guess you need to use date_trunc
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question