Re: Proper relational database?

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: Proper relational database?
Дата
Msg-id CAEzk6fdkfVCiqpv48az5dSD9bAhTOjZdxkJxEas4w+fno4xcbQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proper relational database?  (Geoff Winkless <pgsqladmin@geoff.dj>)
Список pgsql-general
On 24 April 2016 at 12:29, Geoff Winkless <pgsqladmin@geoff.dj> wrote:
> To find students with no exam today (the other point of your argument):
>
> SELECT student_id, name
> FROM student
> LEFT JOIN exam USING(student_id)
> WHERE exam_date=CURRENT_DATE AND exam.student_id IS NULL;

*sigh* problem with writing emails in a rush. Of course I meant

SELECT student.student_id, name
FROM student
LEFT JOIN exam ON exam.student_id=student.student_id AND exam_date=CURRENT_DATE
WHERE exam.student_id IS NULL;

Geoff


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

Предыдущее
От:
Дата:
Сообщение: Re: Proper relational database?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Is it possible to recover the schema from the raw files?