Solved: UNION and FilterSQL
Posted: Tue  16 Jun 2015 11:04
				
				I have an sql statement with a union. But when I added a FilterSQL to the TMyQuery the result was not filtered, only the last select was filtered the first was not.
Any thoughts?
I have found a solution: Put the whole union in a select like this:
Now when I do a filter it is applied to the result as a whole.
Thanks
			Any thoughts?
I have found a solution: Put the whole union in a select like this:
Code: Select all
Select * from 
( select * from table1
union 
select * from table2) as resulttable
Thanks