मैं कुछ इस तरह की कोशिश करूंगा:
SET @counter = 0;
SELECT (@counter:[email protected]+1)%3 as rr, grp, name FROM table ORDER by rr, grp
मैं कुछ इस तरह की कोशिश करूंगा:
SET @counter = 0;
SELECT (@counter:[email protected]+1)%3 as rr, grp, name FROM table ORDER by rr, grp