Re: [SQL] locked my keys in the car

Поиск
Список
Период
Сортировка
От Phil R Lawrence
Тема Re: [SQL] locked my keys in the car
Дата
Msg-id 009401bdbf06$37fd5460$3e03b480@dummy.res.lehigh.edu
обсуждение исходный текст
Список pgsql-sql
>So my next question is:
>Is there a way, using SQL, to do the math on this, i.e., to rm the
>patients who appear twice - once in the first query, once in the second?
>(God forbid we re-admit the same patient at some future date!)


Try MINUS.

SQL1
    MINUS
SQL2

yields SQL1's results minus any also found in SQL2.


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

Предыдущее
От: M Simms
Дата:
Сообщение: Low level socket locking...
Следующее
От: All Of Us
Дата:
Сообщение: password protection