Re: counting query

Поиск
Список
Период
Сортировка
От John Meyer
Тема Re: counting query
Дата
Msg-id 45BCB4DF.50604@gmail.com
обсуждение исходный текст
Ответ на Re: counting query  ("Joris Dobbelsteen" <Joris@familiedobbelsteen.nl>)
Ответы Re: counting query  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
Joris Dobbelsteen wrote:
>>
>> CREATE TABLE attendance
>> (
>>  attendanceid serial primary key,
>
> Why you have this??? You already have (entered,timeperiod,studentid)
> that you can use, since that must be unique too. Try to avoid surrogate
> keys as much as possible (it really increases performance and
> ease-of-writing for complex queries!


Correct me if I am wrong, but wouldn't a simple number be a lot easier
to look up than a composite key?

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

Предыдущее
От: "Joris Dobbelsteen"
Дата:
Сообщение: Re: counting query
Следующее
От: "Joris Dobbelsteen"
Дата:
Сообщение: Re: counting query