<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=GL_Trial_Balance_Query</id>
	<title>GL Trial Balance Query - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=GL_Trial_Balance_Query"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=GL_Trial_Balance_Query&amp;action=history"/>
	<updated>2026-05-15T16:10:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=GL_Trial_Balance_Query&amp;diff=224&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=GL_Trial_Balance_Query&amp;diff=224&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:50Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-223:rev-224 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=GL_Trial_Balance_Query&amp;diff=223&amp;oldid=prev</id>
		<title>Intra&gt;User: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=GL_Trial_Balance_Query&amp;diff=223&amp;oldid=prev"/>
		<updated>2017-01-10T00:01:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category: Balancing]]&lt;br /&gt;
[[Category: General Ledger]]&lt;br /&gt;
[[Category: SQL]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select GL_Account Account,Description Name,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :PD_Beg_Date and :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') Cur_Pd_Amt,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date &amp;lt;= :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') End_Amt&lt;br /&gt;
from gltacct ga &lt;br /&gt;
where ga.account_type='B' &lt;br /&gt;
group by gl_account,Description&lt;br /&gt;
union &lt;br /&gt;
select GL_Account Account,Description Name,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :PD_Beg_Date and :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') Pd_Amt,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :yr_Beg_Date and :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') End_Amt&lt;br /&gt;
from gltacct ga &lt;br /&gt;
where ga.account_type='I'&lt;br /&gt;
group by gl_account,Description&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Begin Amt column:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select GL_Account Account,Description Name,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date &amp;lt;:PD_beg_Date and gta.trANS_type&amp;lt;&amp;gt;'B') &amp;quot;Begin Amt&amp;quot;,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :PD_Beg_Date and :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') &amp;quot;Current&amp;quot;,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date &amp;lt;= :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') &amp;quot;Ending Amt&amp;quot;&lt;br /&gt;
from gltacct ga &lt;br /&gt;
where ga.account_type='B' &lt;br /&gt;
group by gl_account,Description&lt;br /&gt;
union &lt;br /&gt;
select GL_Account Account,Description Name,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :yr_Beg_Date and (-1 + :PD_beg_Date) and gta.trANS_type&amp;lt;&amp;gt;'B') BeginAmt,&lt;br /&gt;
&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :PD_Beg_Date and :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') Pd_Amt,&lt;br /&gt;
(select sum(gta.trx_amount) from glttrx gta where ga.gl_account=gta.gl_account &lt;br /&gt;
and gta.trx_date between :yr_Beg_Date and :PD_End_Date and gta.trANS_type&amp;lt;&amp;gt;'B') End_Amt&lt;br /&gt;
from gltacct ga &lt;br /&gt;
where ga.account_type='I'&lt;br /&gt;
group by gl_account,Description&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Most Excellent Queries]]&lt;/div&gt;</summary>
		<author><name>Intra&gt;User</name></author>
	</entry>
</feed>