Search Postgresql Archives

Re: How can I group all children by their parent ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 2014-07-17 à 09:08, Arup Rakshit <aruprakshit@xxxxxxxxxxxxxx> a écrit :

> How can I group all children by their parent ? 
> 
> id  email         parent_id
> 1   test@xxxxxxxx   nil
> 2   test1@xxxxxxxx  1
> 3   email           1
> 4   email           2
> 5   email          nil
> 6   email           3

ORDER BY parent_id, id ?

François Beausoleil





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux