COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID

Поиск
Список
Период
Сортировка
От Michelle Konzack
Тема COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID
Дата
Msg-id 20160901092857.GC28079@cq58.hosts.tdnet.eu
обсуждение исходный текст
Ответы Re: COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID  (Szymon Lipiński <mabewlun@gmail.com>)
Re: COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID  (rob stone <floriparob@gmail.com>)
Re: COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID  (Kevin Grittner <kgrittn@gmail.com>)
Список pgsql-general
Hello to all,

after a period of silence from Debian, Courier, PHP and PostgreSQL I  am
half back and running into a problem...  :-/

I need a table with an UNIQUE CustomerID which is working fine...

...BUT I need also a second column with a count, which  must  be  UNIQUE
inside the CustomerID.

In clear this:

    CustID       Count
         1           1
         1           2
         1           3

         2           1
         2           2

         3           1
         3           2
         3           3
         ...

How to do this?

Thanks in avance

--
Michelle Konzack        ITSystems
GNU/Linux Developer     0033-6-61925193


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

Предыдущее
От: Emrul
Дата:
Сообщение: Array element foreign keys
Следующее
От: Szymon Lipiński
Дата:
Сообщение: Re: COL unique (CustomerID) plus COL unique (COUNT) inside CustomerID