$sSQL = qq{SELECT distinct (snickname), saccountnum, dtacctcreateddate, dtacctenableddate-dtacctdisableddate as disableddiff, laccountid, sacctdisabled FROM $gsAccountTable WHERE SAPP = '$gsApp' AND SOWNERID = '$sOwnerID' and DTACCTCREATEDDATE IS not NULL and SACCTDISABLED <> 'DELETED' ORDER BY SACCTDISABLED};