I have a db with a payments table. And I also have a simple google sheets with one column with the list of payments that were already notified to the customer. The payments table has a pin column where the codes that match the reference column from notifications google sheets are.
So after running the two queries I am running a Query JSON to SQL like below, but all I get is empty data. What am I doing wrong?
Thanks a lot!
select *
from {{ query1.data }} as payments
join {{ query2.data }} as notifications
on payments.pin = notifications.reference
select * from {{ formatDataAsArray(query1.data) }} as payments join {{ formatDataAsArray(query2.data) }} as notifications on payments.pin = notifications.reference
Can you share a screenshot of the left sidebar with these queries data properties expanded? It seems like the returns from the two queries may be in different formats.