Ravnica Ravnica - 1 year ago 68
MySQL Question

How to Query X above the MIN in MySQL

I am trying to get .1 above the min for column X sorted by Y in A

What I have so far is:
Select MIN(X), Y
From A
Where MIN(X) > (Min(x)+.1) <--- (if only computers did what i wanted them to not what i asked them to)
Group by Y

Answer Source

Is this what you want?

select x, y
from a
where x > (select min(x) + 0.1 from a);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download