We help IT Professionals succeed at work.
Get Started

MySQL to get Limited value from each category.

Ganesh Thandapani
on
222 Views
Last Modified: 2018-01-17
I have user table which contains user_name, import_id, user_category

user_name   import_id   user_category
aaaaa                 1                 1
bbbbbb              1                 1
aaaaa                 1                 1
bbbbbb              1                 1
aaaaa                 1                2
bbbbbb              1                 2
aaaaa                 1                 2
bbbbbb              1                 2
aaaaa                 1                 3
bbbbbb              1                 3
aaaaa                 1                 3
bbbbbb              1                 4
aaaaa                 1                 4
bbbbbb              1                 5

in which i have to show only two values in each category as a result
Comment
Watch Question
Data Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE