Skip to content
Advertisement

Is it possible to process external data as some kind of virtual table?

I have the following problem I need to make a funnel, where I need to show correlation between the data I have and data from DB. I have a query of the following kind:

Is it possible to process the data in where statement in such a way that I could address to it as to a table I mean if there is a possibility to count the emails by name in where statement to in something like this?

to have the result like this

listed emails can be absent it the some_table and if I’m to join tables, I’m to join 3 different tables for every data piece that are not directly related. The data I have is manually processed and is not added to DB.

Advertisement

Answer

You can use a VALUES list to construct your virtual table, and join that to your real table.

I had to switch from an IN-list to an equivalent array operation, because the tables can have arrays but can’t have lists.

count(emails in the list)

I’m not sure what this means. Maybe this:?

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