Sometimes when we are searching for something, we tend to look too deep and with wrong keywords. Forget about SQL procedures, the REPEAT() function and setting variables. If you want a result set with two columns, one the ID, and the other a frequency count, then use this:
SELECT id, COUNT( someValue ) AS frequency FROM tableName GROUP BY someValue;
Your welcome!
Comments
With over 대전광역 출장샵 23000 guestrooms and suites, 의정부 출장샵 the 춘천 출장마사지 Hard Rock Hotel & 당진 출장마사지 Casino in Mountain View is home to more than 2600 electronic games, a popular music venue, 과천 출장샵