Skip to content
Advertisement

How to join two tables based on a calculated field?

I have two SQL queries that output the same kind of output and have the same grouping and order :

enter image description here

enter image description here

I would like to join those two results based on the calculated date field (which is the month), and have a result with 3 columns : date, count_users and count_payment_logs.

How can I achieve that? Thanks.

Advertisement

Answer

Something like this

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