-- compare g mags across stack tables
select 
       gra,
       gdec,
       gExpMag,
       gExpMagErr,
       gExpRadius,
       gExpRadiusErr,
       gExpAb,
       gExpAbErr,
       gExpPhi,
       gExpPhiErr,
       gExpRa,
       gExpDec,
       gExpRaErr,
       gExpDecErr,
       gExpCf,
       gExpLikelihood,
       gippDetectID
       from StackObjectThin 
       join StackModelFitExp using (gippDetectID)
       join StackModelFitDeV using (gippDetectID)
       join StackModelFitSer using (gippDetectID)
       -- where (gpsfQfPerfect > 0.85)
       limit 50
