Select mysql GROUP BY

Asked

Viewed 73 times

0

Good morning Friends. I’m having a problem in a select in mysql com group by. I have a betting system q generates the put in arrays recording in the bank each of the stakes q generates a coupon q code. MY DOUBT IS. How do I get a single record of this group of the same code?

1 answer

0

If I understood well, you can do so "SELECT * FROM bet WHERE code=XX LIMIT 1" Here is;e will return the bet of those who have the same code, but I did not understand well if it will have an extra condition and ta;, if it is not that comments there for me to help you better!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.