Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 033682E4243 for ; Thu, 7 Feb 2008 12:10:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 55379-05 for ; Thu, 7 Feb 2008 12:10:29 -0400 (AST) Received: from mtao02.charter.net (mtao02.charter.net [209.225.8.187]) by postgresql.org (Postfix) with ESMTP id E6A7D2E180D for ; Thu, 7 Feb 2008 12:10:28 -0400 (AST) Received: from aarprv06.charter.net ([10.20.200.76]) by mtao02.charter.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20080207161007.QHZN18326.mtao02.charter.net@aarprv06.charter.net> for ; Thu, 7 Feb 2008 11:10:07 -0500 Received: from [192.168.1.215] (really [68.186.33.18]) by aarprv06.charter.net with ESMTP id <20080207161007.OEKR14098.aarprv06.charter.net@[192.168.1.215]> for ; Thu, 7 Feb 2008 11:10:07 -0500 From: johnf To: pgsql-sql@postgresql.org Subject: Re: accounting schema Date: Thu, 7 Feb 2008 08:09:46 -0800 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <20080207011622.390CE2E2F13@postgresql.org> <47aa6e71.07eb300a.345e.ffffca19SMTPIN_ADDED@mx.google.com> <8078a1730802061854m7a7c2129h9e7416453fabfcaf@mail.gmail.com> In-Reply-To: <8078a1730802061854m7a7c2129h9e7416453fabfcaf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802070809.46895.jfabiani@yolo.com> X-Chzlrs: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/56 X-Sequence-Number: 30147 On Wednesday 06 February 2008 06:54:36 pm Medi Montaseri wrote: > I suppose instead of AR and AP tables, I can just have one table called > Entry (thanks Joe....) with an attribute indicating AR vs AP. I recommend you not do have only one table for transaction. AR and AP are different animals and each can get very complex quickly. Adding a field that only applies to AP and not AR is a very simple example of what goes wrong. -- John Fabiani