This query seems to work also in ORACLE. On 05/04/2016 01:25 AM, Simon Murphy wrote: > SELECT >> (ra*6.0) AS alias_A, >> (decl*6.0) AS alias_B, >> COUNT(*) AS num >> FROM >> alpha_source >> WHERE >> (ra>0) >> GROUP BY >> (ra*6.0), >> (decl*6.0)