Re: [SQL] TG_TABLE_NAME as identifier

2008-02-07 Thread Tiziano Slack
Thanks,

T.

_
Organizza le tue feste e condividine le foto con Windows Live Eventi!
http://home.services.spaces.live.com/events/

Re: [SQL] accounting schema

2008-02-07 Thread John Hasler
Look at LedgerSMB at .  It uses Postgresql.
-- 
John Hasler 
[EMAIL PROTECTED]
Elmwood, WI USA

---(end of broadcast)---
TIP 6: explain analyze is your friend


Re: [SQL] accounting schema

2008-02-07 Thread Tony Wasson
On Feb 6, 2008 6:08 PM, Medi Montaseri <[EMAIL PROTECTED]> wrote:
> I am learning my way into Accounting and was wondering how Accounting
> applications are designed. perhaps you could point the way


> As a DBA, (and keeping it simple) I am thinking I need a table for every
> account which migh look like
>
> id, description, credit, debit, validated, created_on, created_by,
> modified_on, modified_by
>
> Is that pretty match it ?
> Please let me know if you have seen some accounting or DB book that
> addresses this problem domain.

Another codebase to look at is http://www.sql-ledger.org/. It uses postgresql.

Regards,
Tony

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings


Re: [SQL] accounting schema

2008-02-07 Thread johnf
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

---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
   subscribe-nomail command to [EMAIL PROTECTED] so that your
   message can get through to the mailing list cleanly