Need query

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

 



Table1
Name      Fruit
A              Mango 
A              Apple
A               Grape
B.              Mango 
B.              Mango 
A.              Mango 
A.              Apple 

Output 
Name.   Mango   Apple   Grape
A.           2.            2.          1 
B.           2.             0.         0

Can anyone write query to get this desired output from table one in Postgres please. 

TIA

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux