-- compare g mags across stack tables
select 
       gra,
       gdec,
       gDeVMag,
       gDeVMagErr,
       gDeVRadius,
       gDeVRadiusErr,
       gDeVAb,
       gDeVAbErr,
       gDeVPhi,
       gDeVPhiErr,
       gDeVRa,
       gDeVDec,
       gDeVRaErr,
       gDeVDecErr,
       gDeVCf,
       gDeVLikelihood,
       gippDetectID
       from StackObjectThin 
       join StackModelFitExp using (gippDetectID)
       join StackModelFitDeV using (gippDetectID)
       join StackModelFitSer using (gippDetectID)
       -- where (gpsfQfPerfect > 0.85)
       limit 50
