Select AccountCode,AccountName,Title from (
Select OACT.AcctCode as AccountCode, OACT.AcctName as AccountName,OACT.GroupMask,OACT.GrpLine,OACT.Postable as Title
from OACT
Where OACT.Postable='Y'
UNION ALL
Select OACT.AcctCode as AccountCode, OACT.AcctName as AccountName,OACT.GroupMask,OACT.GrpLine,OACT.Postable as Title
from OACT
Where OACT.Postable='N'
) as T
ORDER BY T.GroupMask,T.GrpLine
No comments:
Post a Comment