Matching several rows

Поиск
Список
Период
Сортировка
От Ivan Steganov
Тема Matching several rows
Дата
Msg-id 3578f52e0601172043s64561353i689350a1c5d4debb@mail.gmail.com
обсуждение исходный текст
Ответы Re: Matching several rows  (Michael Glaesemann <grzm@myrealbox.com>)
Re: Matching several rows  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Re: Matching several rows  (Ivan Steganov <istegan6@gmail.com>)
Список pgsql-sql
Hi,<br /><br />This is possibly absolutely trivial but I am lost...<br /><br />A table URIGHTS which stores an ID and
theRIGHTs this ID has. One ID may have many rights and accordingly records in table, sample:<br /><br />ID        RIGHT
<br/>---------------------<br />20        1<br />20        2<br />20        5<br />20        10<br />30        2<br
/>30       10<br /><br />Now I need to find out which IDs have, say rights 2 AND 5 AND 10.<br /><br />What would be the
simplestquery? <br /><br />Thanks!  

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

Предыдущее
От: "Ken Winter"
Дата:
Сообщение: Still struggling with history tables
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Matching several rows