pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Hughes <johughes@shaw.ca>
To: pgsql-general@postgresql.org.pgsql-sql
Subject: How would i do this?
Date: Tue, 11 Dec 2001 13:21:56 -0600
Message-ID: <9v5m86$26uo$1@news.tht.net> (raw)

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



view thread (6+ messages)  latest in thread

Message-ID: <9v5m86$26uo$1@news.tht.net>
Permalink:  ../9v5m86$26uo$1@news.tht.net/
Also on:    postgresql.org/message-id/9v5m86$26uo$1@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: johughes@shaw.ca, pgsql-general@postgresql.org.pgsql-sql
  Subject: Re: How would i do this?
  In-Reply-To: <9v5m86$26uo$1@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox