Some SELECT
statements stores in table as a field. I need to write SELECT
statement that joins with some SELECT
that returns SELECT.
For example:
SELECT *
FROM table1
JOIN (SELECT t_select FROM table2 WHERE = 'some_condition')
Last SELECT SELECT t_select FROM table2
returns some SELECT statement as text
.
I need to join table1 with the result of the query that stores in t_select