A and C not B

Поиск
Список
Период
Сортировка
От Chad Thompson
Тема A and C not B
Дата
Msg-id 00c101c259db$844ddb40$32021aac@chad
обсуждение исходный текст
Список pgsql-novice
I have a table that lists numbers and gives them a rank either 'A' or 'B'.  There is a ranking of 'C' if the number is not in this table.
I have another that lists numbers.
 
It is very easy to find which number is A or B or C, or A and B.  But if i wanted to find A and C, or B and C, I cannot figure out a sql statement that would give me that. 
 
This is probably very simple, but I am not the best at sql and so cannot wrap my head around it.
 
Thanks in advance
Chad

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

Предыдущее
От: Roland Roberts
Дата:
Сообщение: Re: Unique indices and nulls
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Strange situation with two tables.