I have PostgreSQL like so
team goals points
ABC 2 45
ABC 4 25
XYZ 5 32
ABC 1 25
XYZ 6 23
ABC 1 35
ABC 8 35
How do I get the row where the goals are minimum for teams ABC
The expected out put is
team goals points
ABC 1 25
ABC 1 35
I thought it was simple (may be it is) but I am not able to figure it out. I am new to PostgreSQL, so please guide me.