One month-end question, start to finish
Pull July’s trial balance for the US ledger into Excel. Here is the whole job, in one worksheet.
- 1Find the table
- 2Write the query
- 3Run it for the period
- 4Export to Excel
Type part of a name and the Object Explorer ranks matching tables and views as you type, across tens of thousands of objects.
Type an alias and a dot, and autocomplete lists that table’s columns and their types, so there are no column names or module prefixes to memorize.
Bind variables are prompted when you run and remembered per tab, so next month you change one value and run it again.
Send the rows to Excel or CSV. A full export writes every row to disk, up to your export cap: 50,000 rows by default, adjustable to 1,000,000.
| Variable | Value | Null |
|---|---|---|
| :period_name | Enter value...JUL-26 | |
| :ledger_name | Enter value...Summit US Primary Ledger |
Step 1 of 4
Find the table
Type part of a name and the Object Explorer ranks matching tables and views as you type, across tens of thousands of objects.
Object ExplorerSearch objects...gl_balModuleAllTablesViewsObjects(51)Common(6)Financials(30)Human Capital Management(3)Supply Chain Management(12)Search columns for “gl_bal”1 objectGL_BALANCESSource:Summit — DEV1 (Demo)Release 26Cjust nowAP Invoice Aging.sqlSupplier Audit.sqlSummit — DEV1 (Demo)RunConnectionSummit — DEV1 (Demo)11SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.period_net)13FROM gl_balances bal14JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id15JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id16WHERE bal.actual_flag = 'A'17AND bal.template_id IS NULL18AND bal.currency_code = led.currency_code19AND bal.period_name = :period_name20AND UPPER(led.name) LIKE UPPER(:ledger_name)21ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment61SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.PERIOD_NET_DR, 0) AS period_debits,13 NVL(bal.period_net_cr, 0) AS period_credits,14 NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS period_net,15 NVL(bal.begin_balance_dr, 0) - NVL(bal.begin_balance_cr, 0)16 + NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS ending_balance17FROM gl_balances bal18JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id19JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id20WHERE bal.actual_flag = 'A'21AND bal.template_id IS NULL22AND bal.currency_code = led.currency_code23AND bal.period_name = :period_name24AND UPPER(led.name) LIKE UPPER(:ledger_name)25ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment6PERIOD_NET_DRNUMBERPERIOD_NET_CRNUMBERPERIOD_NET_DR_BEQNUMBERPERIOD_NET_CR_BEQNUMBERResultsHistoryMessagesSearch results...Hide Empty ColumnsSort Columns A→ZManage Columns(8)32rows|1.2 sRequestExportRun a query to see resultsCtrl+Enterto executeExecuting query...#LEDGERPERIODACCOUNT_COMBINATIONACCOUNT_TYPEPERIOD_DEBITSPERIOD_CREDITSPERIOD_NETENDING_BALANCE1Summit US Primary LedgerJUL-26101.000.11100.000.000.000Asset114378.044229.74110148.32379742.762Summit US Primary LedgerJUL-26101.000.12100.000.000.000Asset880160.8418871.58861289.262276827.833Summit US Primary LedgerJUL-26101.000.13100.000.000.000Asset246792.8746609.37200183.51569546.334Summit US Primary LedgerJUL-26101.000.15100.000.000.000Asset946298.1814566.96931731.221901937.295Summit US Primary LedgerJUL-26101.000.21100.000.000.000Liability64898.52371118.05-306219.531774272.786Summit US Primary LedgerJUL-26101.000.21500.000.000.000Liability28984.47722786.91-693802.441689453.177Summit US Primary LedgerJUL-26101.000.31100.000.000.000Equity34548.92838373.16-803824.24-799832.698Summit US Primary LedgerJUL-26101.000.41100.000.000.000Revenue37560.37230331.74-192771.371010450.879Summit US Primary LedgerJUL-26101.000.41200.000.000.000Revenue3136.11743985.75-740849.641101330.7510Summit US Primary LedgerJUL-26101.100.51100.000.000.000Expense224896.4612065.88212830.582223744.7311Summit US Primary LedgerJUL-26101.100.61230.000.000.000Expense204254.8545516.61158738.24581681.46CSVExcelJSONExecuting…0.8 s32 rows1.2 sLn 1, Col 10 charsLn 12, Col 26933 charsLn 16, Col 831,235 chars100%Enter Bind VariablesVariable Value Null :period_name Enter value...JUL-26 :ledger_name Enter value...Summit US Primary Ledger CancelApplyExporting Results...Export CompleteWriting file... 32 rowsExported 32 rows successfully.CloseThe Object Explorer search box holds gl_bal and the ranked list has narrowed to one table, GL_BALANCES. Step 2 of 4
Write the query
Type an alias and a dot, and autocomplete lists that table’s columns and their types, so there are no column names or module prefixes to memorize.
Object ExplorerSearch objects...gl_balModuleAllTablesViewsObjects(51)Common(6)Financials(30)Human Capital Management(3)Supply Chain Management(12)Search columns for “gl_bal”1 objectGL_BALANCESSource:Summit — DEV1 (Demo)Release 26Cjust nowAP Invoice Aging.sqlSupplier Audit.sqlSummit — DEV1 (Demo)RunConnectionSummit — DEV1 (Demo)11SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.period_net)13FROM gl_balances bal14JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id15JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id16WHERE bal.actual_flag = 'A'17AND bal.template_id IS NULL18AND bal.currency_code = led.currency_code19AND bal.period_name = :period_name20AND UPPER(led.name) LIKE UPPER(:ledger_name)21ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment61SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.PERIOD_NET_DR, 0) AS period_debits,13 NVL(bal.period_net_cr, 0) AS period_credits,14 NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS period_net,15 NVL(bal.begin_balance_dr, 0) - NVL(bal.begin_balance_cr, 0)16 + NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS ending_balance17FROM gl_balances bal18JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id19JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id20WHERE bal.actual_flag = 'A'21AND bal.template_id IS NULL22AND bal.currency_code = led.currency_code23AND bal.period_name = :period_name24AND UPPER(led.name) LIKE UPPER(:ledger_name)25ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment6PERIOD_NET_DRNUMBERPERIOD_NET_CRNUMBERPERIOD_NET_DR_BEQNUMBERPERIOD_NET_CR_BEQNUMBERResultsHistoryMessagesSearch results...Hide Empty ColumnsSort Columns A→ZManage Columns(8)32rows|1.2 sRequestExportRun a query to see resultsCtrl+Enterto executeExecuting query...#LEDGERPERIODACCOUNT_COMBINATIONACCOUNT_TYPEPERIOD_DEBITSPERIOD_CREDITSPERIOD_NETENDING_BALANCE1Summit US Primary LedgerJUL-26101.000.11100.000.000.000Asset114378.044229.74110148.32379742.762Summit US Primary LedgerJUL-26101.000.12100.000.000.000Asset880160.8418871.58861289.262276827.833Summit US Primary LedgerJUL-26101.000.13100.000.000.000Asset246792.8746609.37200183.51569546.334Summit US Primary LedgerJUL-26101.000.15100.000.000.000Asset946298.1814566.96931731.221901937.295Summit US Primary LedgerJUL-26101.000.21100.000.000.000Liability64898.52371118.05-306219.531774272.786Summit US Primary LedgerJUL-26101.000.21500.000.000.000Liability28984.47722786.91-693802.441689453.177Summit US Primary LedgerJUL-26101.000.31100.000.000.000Equity34548.92838373.16-803824.24-799832.698Summit US Primary LedgerJUL-26101.000.41100.000.000.000Revenue37560.37230331.74-192771.371010450.879Summit US Primary LedgerJUL-26101.000.41200.000.000.000Revenue3136.11743985.75-740849.641101330.7510Summit US Primary LedgerJUL-26101.100.51100.000.000.000Expense224896.4612065.88212830.582223744.7311Summit US Primary LedgerJUL-26101.100.61230.000.000.000Expense204254.8545516.61158738.24581681.46CSVExcelJSONExecuting…0.8 s32 rows1.2 sLn 1, Col 10 charsLn 12, Col 26933 charsLn 16, Col 831,235 chars100%Enter Bind VariablesVariable Value Null :period_name Enter value...JUL-26 :ledger_name Enter value...Summit US Primary Ledger CancelApplyExporting Results...Export CompleteWriting file... 32 rowsExported 32 rows successfully.CloseThe editor shows the trial balance query being written. After typing bal.period_net, autocomplete lists four GL_BALANCES columns, each a NUMBER. Step 3 of 4
Run it for the period
Bind variables are prompted when you run and remembered per tab, so next month you change one value and run it again.
Object ExplorerSearch objects...gl_balModuleAllTablesViewsObjects(51)Common(6)Financials(30)Human Capital Management(3)Supply Chain Management(12)Search columns for “gl_bal”1 objectGL_BALANCESSource:Summit — DEV1 (Demo)Release 26Cjust nowAP Invoice Aging.sqlSupplier Audit.sqlSummit — DEV1 (Demo)RunConnectionSummit — DEV1 (Demo)11SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.period_net)13FROM gl_balances bal14JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id15JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id16WHERE bal.actual_flag = 'A'17AND bal.template_id IS NULL18AND bal.currency_code = led.currency_code19AND bal.period_name = :period_name20AND UPPER(led.name) LIKE UPPER(:ledger_name)21ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment61SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.PERIOD_NET_DR, 0) AS period_debits,13 NVL(bal.period_net_cr, 0) AS period_credits,14 NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS period_net,15 NVL(bal.begin_balance_dr, 0) - NVL(bal.begin_balance_cr, 0)16 + NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS ending_balance17FROM gl_balances bal18JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id19JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id20WHERE bal.actual_flag = 'A'21AND bal.template_id IS NULL22AND bal.currency_code = led.currency_code23AND bal.period_name = :period_name24AND UPPER(led.name) LIKE UPPER(:ledger_name)25ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment6PERIOD_NET_DRNUMBERPERIOD_NET_CRNUMBERPERIOD_NET_DR_BEQNUMBERPERIOD_NET_CR_BEQNUMBERResultsHistoryMessagesSearch results...Hide Empty ColumnsSort Columns A→ZManage Columns(8)32rows|1.2 sRequestExportRun a query to see resultsCtrl+Enterto executeExecuting query...#LEDGERPERIODACCOUNT_COMBINATIONACCOUNT_TYPEPERIOD_DEBITSPERIOD_CREDITSPERIOD_NETENDING_BALANCE1Summit US Primary LedgerJUL-26101.000.11100.000.000.000Asset114378.044229.74110148.32379742.762Summit US Primary LedgerJUL-26101.000.12100.000.000.000Asset880160.8418871.58861289.262276827.833Summit US Primary LedgerJUL-26101.000.13100.000.000.000Asset246792.8746609.37200183.51569546.334Summit US Primary LedgerJUL-26101.000.15100.000.000.000Asset946298.1814566.96931731.221901937.295Summit US Primary LedgerJUL-26101.000.21100.000.000.000Liability64898.52371118.05-306219.531774272.786Summit US Primary LedgerJUL-26101.000.21500.000.000.000Liability28984.47722786.91-693802.441689453.177Summit US Primary LedgerJUL-26101.000.31100.000.000.000Equity34548.92838373.16-803824.24-799832.698Summit US Primary LedgerJUL-26101.000.41100.000.000.000Revenue37560.37230331.74-192771.371010450.879Summit US Primary LedgerJUL-26101.000.41200.000.000.000Revenue3136.11743985.75-740849.641101330.7510Summit US Primary LedgerJUL-26101.100.51100.000.000.000Expense224896.4612065.88212830.582223744.7311Summit US Primary LedgerJUL-26101.100.61230.000.000.000Expense204254.8545516.61158738.24581681.46CSVExcelJSONExecuting…0.8 s32 rows1.2 sLn 1, Col 10 charsLn 12, Col 26933 charsLn 16, Col 831,235 chars100%Enter Bind VariablesVariable Value Null :period_name Enter value...JUL-26 :ledger_name Enter value...Summit US Primary Ledger CancelApplyExporting Results...Export CompleteWriting file... 32 rowsExported 32 rows successfully.CloseThe Enter Bind Variables prompt holds JUL-26 for :period_name and Summit US Primary Ledger for :ledger_name, over a grid of 32 trial balance rows. Step 4 of 4
Export to Excel
Send the rows to Excel or CSV. A full export writes every row to disk, up to your export cap: 50,000 rows by default, adjustable to 1,000,000.
Object ExplorerSearch objects...gl_balModuleAllTablesViewsObjects(51)Common(6)Financials(30)Human Capital Management(3)Supply Chain Management(12)Search columns for “gl_bal”1 objectGL_BALANCESSource:Summit — DEV1 (Demo)Release 26Cjust nowAP Invoice Aging.sqlSupplier Audit.sqlSummit — DEV1 (Demo)RunConnectionSummit — DEV1 (Demo)11SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.period_net)13FROM gl_balances bal14JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id15JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id16WHERE bal.actual_flag = 'A'17AND bal.template_id IS NULL18AND bal.currency_code = led.currency_code19AND bal.period_name = :period_name20AND UPPER(led.name) LIKE UPPER(:ledger_name)21ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment61SELECT led.name AS ledger,2 bal.period_name AS period,3 cc.segment1 || '.' || cc.segment2 || '.' || cc.segment3 || '.' ||4 cc.segment4 || '.' || cc.segment5 || '.' || cc.segment6 AS account_combination,5 DECODE(cc.account_type,6 'A', 'Asset',7 'L', 'Liability',8 'O', 'Equity',9 'R', 'Revenue',10 'E', 'Expense',11 cc.account_type) AS account_type,12 NVL(bal.PERIOD_NET_DR, 0) AS period_debits,13 NVL(bal.period_net_cr, 0) AS period_credits,14 NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS period_net,15 NVL(bal.begin_balance_dr, 0) - NVL(bal.begin_balance_cr, 0)16 + NVL(bal.period_net_dr, 0) - NVL(bal.period_net_cr, 0) AS ending_balance17FROM gl_balances bal18JOIN gl_ledgers led ON led.ledger_id = bal.ledger_id19JOIN gl_code_combinations cc ON cc.code_combination_id = bal.code_combination_id20WHERE bal.actual_flag = 'A'21AND bal.template_id IS NULL22AND bal.currency_code = led.currency_code23AND bal.period_name = :period_name24AND UPPER(led.name) LIKE UPPER(:ledger_name)25ORDER BY cc.segment1, cc.segment2, cc.segment3, cc.segment4, cc.segment5, cc.segment6PERIOD_NET_DRNUMBERPERIOD_NET_CRNUMBERPERIOD_NET_DR_BEQNUMBERPERIOD_NET_CR_BEQNUMBERResultsHistoryMessagesSearch results...Hide Empty ColumnsSort Columns A→ZManage Columns(8)32rows|1.2 sRequestExportRun a query to see resultsCtrl+Enterto executeExecuting query...#LEDGERPERIODACCOUNT_COMBINATIONACCOUNT_TYPEPERIOD_DEBITSPERIOD_CREDITSPERIOD_NETENDING_BALANCE1Summit US Primary LedgerJUL-26101.000.11100.000.000.000Asset114378.044229.74110148.32379742.762Summit US Primary LedgerJUL-26101.000.12100.000.000.000Asset880160.8418871.58861289.262276827.833Summit US Primary LedgerJUL-26101.000.13100.000.000.000Asset246792.8746609.37200183.51569546.334Summit US Primary LedgerJUL-26101.000.15100.000.000.000Asset946298.1814566.96931731.221901937.295Summit US Primary LedgerJUL-26101.000.21100.000.000.000Liability64898.52371118.05-306219.531774272.786Summit US Primary LedgerJUL-26101.000.21500.000.000.000Liability28984.47722786.91-693802.441689453.177Summit US Primary LedgerJUL-26101.000.31100.000.000.000Equity34548.92838373.16-803824.24-799832.698Summit US Primary LedgerJUL-26101.000.41100.000.000.000Revenue37560.37230331.74-192771.371010450.879Summit US Primary LedgerJUL-26101.000.41200.000.000.000Revenue3136.11743985.75-740849.641101330.7510Summit US Primary LedgerJUL-26101.100.51100.000.000.000Expense224896.4612065.88212830.582223744.7311Summit US Primary LedgerJUL-26101.100.61230.000.000.000Expense204254.8545516.61158738.24581681.46CSVExcelJSONExecuting…0.8 s32 rows1.2 sLn 1, Col 10 charsLn 12, Col 26933 charsLn 16, Col 831,235 chars100%Enter Bind VariablesVariable Value Null :period_name Enter value...JUL-26 :ledger_name Enter value...Summit US Primary Ledger CancelApplyExporting Results...Export CompleteWriting file... 32 rowsExported 32 rows successfully.CloseThe Export menu is open over the 32 trial balance rows, offering CSV, Excel and JSON.