| From: | John Hughes <johughes(at)shaw(dot)ca> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org(dot)pgsql-sql(at)postgresql(dot)org |
| Subject: | How would i do this? |
| Date: | 2001-12-11 19:21:56 |
| Message-ID: | 9v5m86$26uo$1@news.tht.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Steve Wolfe | 2001-12-11 19:31:15 | Re: migrating from single disk to RAID 5 |
| Previous Message | Doug McNaught | 2001-12-11 19:17:08 | Re: migrating from single disk to RAID 5 |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Snow | 2001-12-11 20:09:09 | Re: How would i do this? |
| Previous Message | Stephan Szabo | 2001-12-11 18:46:32 | Re: Indices |