Hi Raj,
I came across the exact same requirement today and your solution above is very useful. Small question though: where do we find the list of such system tables? This is so that in the future if there is any such requirement it will help to look into those.
Thanks in advance.
Regards,
Manish