Skip to content
Advertisement

How to Find People Who did Transaction Twice on The Same Day and Who did Transaction Consecutively in Less than 10 Minutes

I have another table which looked like this:

I need to write two queries:

  1. Find users who did transactions twice on the same day, what product were they bought and how much were they spend on the 1st transaction.

  2. Find which users did transaction consecutively less than 10 minutes!

I am very appreciating for your help.

Advertisement

Answer

1st query: Gives product were they bought and how much were they spend on the 1st and secund transactions

2nd Query:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement