Your SQL command was:
SELECT TOP 10 
 obj.run, obj.camCol, str(obj.field, 3) as field,
 str(obj.rowc, 6, 1) as rowc, str(obj.colc, 6, 1) as colc,
 str(dbo.fObj(obj.objId), 4) as id, 
 str(obj.psfMag_g - 0*obj.extinction_g, 6, 3) as g,
 str(obj.psfMag_r - 0*obj.extinction_r, 6, 3) as r,
 str(obj.psfMag_i - 0*obj.extinction_i, 6, 3) as i,
 str(obj.psfMag_z - 0*obj.extinction_z, 6, 3) as z,
 str(60*distance, 3, 1) as D,
 dbo.fField(neighborObjId) as nfield,
 str(dbo.fObj(neighborObjId), 4) as nid
FROM
 (SELECT obj.objId,
 run, camCol, field, rowc, colc,
 psfMag_u, extinction_u,
 psfMag_g, extinction_g,
 psfMag_r, extinction_r,
 psfMag_i, extinction_i,
 psfMag_z, extinction_z,
 NN.neighborObjId, NN.distance
 FROM PhotoObj as obj
 JOIN neighbors as NN on obj.objId = NN.objId
 WHERE
 60*NN.distance between 0 and 15 and
 NN.mode = 1 and NN.neighborMode = 1 and
 run = 756 and camCol = 5 and
 obj.type = 6 and (obj.flags & 0x40006) = 0 and
 nchild = 0 and obj.psfMag_i < 20 and
 (g - r between 0.3 and 1.1 and r - i between -0.1 and 0.6)
 ) as obj 
JOIN PhotoObj as nobj on nobj.objId = obj.neighborObjId 
WHERE 
 nobj.run = obj.run and
 (abs(obj.psfMag_g - nobj.psfMag_g) < 0.5 or
 abs(obj.psfMag_r - nobj.psfMag_r) < 0.5 or
 abs(obj.psfMag_i - nobj.psfMag_i) < 0.5) 

Your query output (max 500,000 rows):

runcamColfieldrowccolcidgrizDnfieldnid
7565 13 396.11751.4137520.80720.10619.77819.656 12131539
7565 63 260.81040.6110520.79320.00819.74319.656 1563 958
7565 11 189.6 598.4142820.11719.39819.10818.8609.311 802
7565 13 607.5 981.4138620.55319.85919.58619.472 14131578
7565 13 607.5 981.4138620.55319.85919.58619.472 13131598
7565 13 632.5 187.8138720.46520.01119.82219.7189.6131611
7565 14 115.81480.4 76318.89718.43118.26118.176 1314 775
7565 14 639.0 165.9101919.67919.06118.83618.746 13141017
7565 14 801.91612.9107819.89719.53219.40419.337 14141091
7565 14 896.7 709.6111018.98118.28418.02217.870 11141100

Use the button below to upload the results of the above query to the SAS and retrieve the corresponding FITS files:

Upload list of fields to SAS