There is a tool, that creates a GUI out of a SQL-file having some additional commands in. Read here how this works
The ListSelectionPanel lets the user select elements from a list and adds them to the query. The content of the list is generated out of a SQL-query by itself.
Format:
#execute(Unique-Tab-Title;Type(IN|SIMPLE);(Table.attribute IN|Table.attribute);SQL-Query) where IN generates an IN-SQL-Statement (attribute IN ('A','B'...) )
and simply spaces in between two selected elements
In this case our statement looks like this:
#execute(City;IN;garage.city in;select distinct city from garage)
Where the elements are as follows:
this selection will create such a SQL-fragment:
garage.city in ('Zuerich' , 'Vienna' , 'Dortmund')