Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBBJdUm10423; Tue, 11 Dec 2001 14:39:30 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id fBBJJcU72670; Tue, 11 Dec 2001 14:19:38 -0500 (EST) (envelope-from news) From: John Hughes X-Newsgroups: comp.databases.postgresql.novice, comp.databases.postgresql.questions, comp.databases.postgresql.sql Subject: How would i do this? Followup-To: comp.databases.postgresql.novice Date: Tue, 11 Dec 2001 13:21:56 -0600 Organization: non Lines: 22 Message-ID: <9v5m86$26uo$1@news.tht.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: news@hub.org User-Agent: KNode/0.6.1 To: pgsql-general@postgresql.org.pgsql-sql@postgresql.org X-Archive-Number: 200112/410 X-Sequence-Number: 18511 I am new to DB programming, so im not too sure about how to implement my DB. Here is what i need: a DB with tables of: 1. Students. 2. Classes 3. Teachers 4. Assignments Each teacher can be assigned a class, which is compromised of a list of students. Each class can be given assignments. Coming from a programming background, I could do this in c++ very easily. I actually started inmplementing it in a similar fasion: each student class teacher ect would have a uniqe id in the database, and, for example, a class would include an array of integer student id's. This seems really error prone, and not very efficient. what is a better implementation? John Hughes