Table1Name FruitA MangoA AppleA GrapeB. MangoB. MangoA. MangoA. Apple
OutputName. Mango Apple GrapeA. 2. 2. 1B. 2. 0. 0
Can anyone write query to get this desired output from table one inPostgres please.
TIA