Let\'s say I want to give access to a user to be able to query two tables and join them:
SELECT * from table1 JOIN table2 on table1.t_id=table2.id