Chart of Account tables

Hi There,

I am totally new to Microsoft NAV, I am trying to figure out tables in GL, so I can build query for Chart of Accout with rollup. I know there is G_L Account table, which has all detail GL account, but how do I know which GL rollup to upper level, do I need any other table or do I miss fields in the table?

Many thanks