I want to use a SQL join to merge data from 2 tables and display it in the info-window. When I give my query
Select table_2.hos_name,table_2.revenue from table_1,table_2 where table_1.area_name = table_2.area_name
in the info-window editor, the Query itself is displayed instead in the info-window instead of the values. When I googled I found this link https://groups.google.com/forum/#!msg/cartodb/W5HHQx1jjMA/qBo56lghRGcJ but I couldn't relate it. Could some one point me to some relevant documentation? Should I include the query as JavaScript?