vollt
vollt copied to clipboard
Wrong ADQL to SQL translation: alias not unique
The following query:
SELECT top 10 a.dec2000, b.dec2000 FROM ph3_mcatalog_fits_V2 a, ph3_mcatalog_fits_V2 b WHERE a.dec2000 between b.dec2000 -0.1 and b.dec2000 + 0.1 and b.ra2000 > a.ra2000 and b.ra2000 < a.ra2000+0.1 AND a.dec2000 < -80.15 AND b.dec2000 < -80.15
Fails with error: Alias 'dec2000' is not unique.
The problem is in the creation of two aliases with the same name (dec2000). Here the full translation to SQL:
<errorSummary type="fatal" hasDetail="true">
Could you please have a look? Thanks!