How would i do this?

Поиск
Список
Период
Сортировка
От John Hughes
Тема How would i do this?
Дата
Msg-id 9v5m86$26uo$1@news.tht.net
обсуждение исходный текст
Список 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

В списке pgsql-sql по дате отправления:

Предыдущее
От: Arian Prins
Дата:
Сообщение: Re: How would i do this?
Следующее
От: Jason Earl
Дата:
Сообщение: Re: Variable Length Binary String (not large)