-- Using spatial unit vectors for coordinate cuts.
-- Find galaxies in a given area of the sky, using a coordinate cut
-- in the unit vector cx,cy,cz that corresponds to a specific RA range.
-- Another simple query that uses math in the WHERE clause.
--
-- NOTE: This query must be run in batch mode, i.e. using the Submit button
--       because it takes too long to execute in Quick mode.

SELECT TOP 100 colc_g, colc_r
FROM  Galaxy
WHERE 
	(-0.466 * cx + 0.689 * cy>=0)
	and (-0.385 * cx - 0.173 * cy <0)
