General Ledger Delete Unused Groups Query: Difference between revisions
Jump to navigation
Jump to search
Intra>User m (1 revision imported) |
(No difference)
|
Revision as of 00:01, 10 January 2017
Preview with select query:
Select * from gltacgrp g
where not exists
( select * from gltacct a where a.gl_group = g.group_id)
and not exists
( select * from gltacgrp g2 where g2.parent_group_id = g.group_id)
DELETE from gltacgrp g
where not exists
( select * from gltacct a where a.gl_group = g.group_id)
and not exists
( select * from gltacgrp g2 where g2.parent_group_id = g.group_id)