Re: sql basic question
От | Anton Gavazuk |
---|---|
Тема | Re: sql basic question |
Дата | |
Msg-id | -676946400807045909@iso-8859-1msgid обсуждение исходный текст |
Ответ на | sql basic question (Antonio Parrotta <antonioparrotta@gmail.com>) |
Список | pgsql-sql |
Do the child Select min, max from... Group by side
Then you can do whatever is required...
Thanks,
Thanks,
Anton
Hi All,
I have this table:
LABEL ID Distance SIDE
"15"; 119006; 0.10975569030617; 1
"14"; 64054; 0.118448307450912; 0
"16"; 64055; 0.176240407317772; 0
"20"; 64057; 0.39363711745035; 0
"19"; 64056; 0.41205442839764; 1
"24"; 119007; 0.59758734628752; 0
What I want to achieve is a result table with min and max distance for each side, limiting to 2 (basically the boundaries of each SIDE)so the result should be:LABEL ID Distance SIDE"15"; 119006; 0.10975569030617; 1"19"; 64056; 0.41205442839764; 1"14"; 64054; 0.118448307450912; 0"24"; 119007; 0.59758734628752; 0Thanks a lot
- Antonioy
В списке pgsql-sql по дате отправления: