| Issue ID | USER |
| 1 | A |
| 2 | A |
| 3 | A |
| 4 | A |
| 5 | A |
| 6 | B |
| 7 | B |
| 8 | C |
Hi I am trying to fetch 20% of record for each user using sql but am able to fetch randon records can some one help me in fetching in %
MY output should be like
| ID | USER |
| 1 | A |
| 3 | A |
| 6 | B |
| 8 | C |
| Issue ID | USER |
| 1 | A |
| 2 | A |
| 3 | A |
| 4 | A |
| 5 | A |
| 6 | B |
| 7 | B |
| 8 | C |
| ID | USER |
| 1 | A |
| 3 | A |
| 6 | B |
| 8 | C |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Puneet KankarRank #446 · 5.6K reputationPosted Jul 18, 2017, 9:28 AM EDT