UKIDSS Sample SQL Queries

This page provides examples of queries against the UKIDSS catalogue using AstroGrid. You can type (or copy'n'paste) the query in the Query Builder window as shown in the image below.

Example queries

Search for all objects in dxs brighter than K=19

This is a basic query returning all objects in brighter than K=19 mags (kAperMag3):

SELECT a.ra, a.dec, a.kAperMag3, a.jAperMag3, a.jAperMag3Err, a.kAperMag3Err FROM
  dxsSource as a 
WHERE 
  a.kAperMag3 < 19 AND a.kAperMag3 > 0.0 
  AND 
  a.jAperMag3>0.0  

The output is saved to a VOspace file in this case dxs-k-lt19.vot. The query returned some 35,000 objects and the query took < one minute to complete.

Attachments