let's just think a table has two columns named as A and B. i want to group records with A and filter if B is equal to some value. (i've already tried 'higher than' 'lower than' and etc.) I'm just using this code.
SELECT * FROM table GROUP BY A HAVING (B = 1 OR B = 2);
the table is:
- A -...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.