-- Find unique objects in an RA/Dec box.
-- PhotoPrimary is a view which selects only unique objects.
-- The full list of good detections including duplicates is in PhotoObj
-- A basic SELECT-FROM-WHERE query.

SELECT TOP 100 objID,  	 -- Get the unique object ID,
    field, ra, dec 	-- the field number, and coordinates
FROM PhotoPrimary 	-- From the photometric data
WHERE
    ra > 185. and ra < 185.1 and dec > 15. and dec < 15.1 