Wrong SQL with fast query builder

rodrigo7rodrigo7 Brasil
edited January 2013 in FastReport 4.0
Why fast query builder made wrong sql?

Look this example:

SELECT F.FUNNOM, F.FUNEND, F.FUNCID, F.FUNCPF, F2.NOME_FILIAL, F2.CNPJ_CPF, F3.DEPNOM
FROM
FO_FUNCIONARIOS_DM F1
INNER JOIN FO_FUNCIONARIOS F ON (F1.ID_FUNCIONARIO=F.ID_FUNCIONARIO)
INNER JOIN FILIAIS F2 ON (F.ID_FILIAL=F2.ID_FILIAL)
INNER JOIN FO_FUNCIONARIOS_DM F1 ON (F3.DEPCOD=F1.FUNDEP),
FO_DEPARTAMENTOS F3


If I try do see result set the message "alias F1 conflicts with an alias in the same statement"

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.