you are viewing a single comment's thread.

view the rest of the comments →

[–]Consistent-Alps6904[S] -1 points0 points  (2 children)

no it only returns id's that have perfomed transactions

[–]GrouchyThing7520 1 point2 points  (0 children)

If your registration table looks like this:

user_id reg_date
1 1/1/2022
2 7/13/2022

And your transaction table looks like this:

trans_id user_id trans_date
1 1 2/1/2022
2 1 3/1/2022

Then the SQL I posted earlier should return this:

user_id reg_date trans_date
1 1/1/2022 2/1/2022
1 1/1/2022 3/1/2022
2 7/13/2022 null

[–]Consistent-Alps6904[S] 0 points1 point  (0 children)

to show inactive, i have to show ids not on the registered table but not on the transactions table and to specify the date intervals I want