I am getting the following error when attempting to run a report:
Error #:2111 Message: There is a duplicate table alias 'MasterIndividual' in the FROM clause.
Sure enough, there is. Here is the SQL statement:
select MasterIndividual.MAS_PK,MasterIndividual.MAS_DOB,MasterIndividual.MAS_DOBDOCUMENTED,MasterIndividual.MAS_EMPLOYERID,WageMasterIndividual.WGM_DATELASTFILED from WageMASTER MasterIndividual inner join MASTER MasterIndividual on WageMasterIndividual.WGM_WEMASTERFK=MasterIndividual.MAS_PK where MasterIndividual.mas_institutionFK = 0 and MasterIndividual.mas_PK > 0
MasterIndividual is a sub-table of Master.dbf
WageMasterIndividual is a sub-table of WageMaster
They are related via WageMasterIndividual.wgm_WEMasterFK = MasterIndividual.mas_PK.
Why is the statement being generated this way? Help!
Thanks! |