Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 16758632B17 for ; Fri, 14 May 2010 06:14:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87497-03 for ; Fri, 14 May 2010 09:14:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moon.antora.ru (moon.antora.ru [89.111.189.180]) by mail.postgresql.org (Postfix) with ESMTP id 30AD1632910 for ; Fri, 14 May 2010 06:14:08 -0300 (ADT) Envelope-to: pgsql-sql@postgresql.org Received: from moon.inner.space ([10.1.1.5] helo=moon.antora.ru) by moon.antora.ru with esmtp (Exim 4.67) (envelope-from ) id 1OCqy4-0004WY-IB for pgsql-sql@postgresql.org; Fri, 14 May 2010 13:14:04 +0400 Received: from [192.168.1.6] [178.34.118.254] by moon.antora.ru (Axigen) with (DHE-RSA-AES256-SHA encrypted) ESMTPSA id 044F3F; Fri, 14 May 2010 13:14:04 +0400 Message-ID: <4BED1459.3080405@bankir.ru> Date: Fri, 14 May 2010 13:14:01 +0400 From: silly sad User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20100111 Thunderbird/3.0 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Postgresql database References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-5 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201005/67 X-Sequence-Number: 34115 On 05/14/10 12:42, Trinath Somanchi wrote: > Hi All, > > I have Tree structured database to maintain. > > Its as follows. > > Vehicles u r talking about a single entity vehicles it is very common to represent a single entity with a single table and IF u also have to have an entity "class of vehicles" u r free to declare the second table named "class" and IF u also have to represent a reference of manfacturers, another one table u have to create then. that's trivial case