| От | lotus118@excite.com (Lotus118) |
|---|---|
| Тема | distinct date problem |
| Дата | |
| Msg-id | 9053EEF2Alotus118excitecom@130.161.180.32 обсуждение |
| Ответы |
Re: distinct date problem
|
| Список | pgsql-sql |
Hi, I'm having difficulty figuring this one out: I have a table with record entries which all have a date attribute, looking something like '2000-11-11'. What I want from my data base is a list of all the years that are present in this attribute in the relation. So for example, if I had a couple of records like: 2000-11-05 1988-02-09 1999-10-06 2001-08-08 1999-09-27 2001-04-04 I would want the query to return: 2000-11-05 1988-02-09 1999-10-06 2001-08-08 So that I get only the distict years. How does one go about this? Thanks, Lotus
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера