[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: [GENERAL] How would i do this?
From: John Hughes <johughes () shaw ! ca>
Date: 2001-12-11 19:21:56
[Download RAW message or body]
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
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic