Write SQL queries to retrive data.
Annotate variables in the query by using '$' sign before and after the variable name as in select * from mytable where column1=$column$
select * from mytable where column1=$column$