How to get this done in mysql?

Posted by bala3569 on Stack Overflow See other posts from Stack Overflow or by bala3569
Published on 2010-04-16T04:58:08Z Indexed on 2010/04/16 5:03 UTC
Read the original article Hit count: 179

Filed under:
|
|

Consider i have a registartion table and there is field prefLocationId and it contains value like this 1,2,3,2,1,4 and so many.... And i have a table prefLocation which looks like this

Id LocationName
1  Chennai
2  Mumbai
3  Kolkatta
4  Delhi

and i want to select record of users and show values like

Chennai,Mumbai,Kolkatta,Mumbai,Chennai,Delhi and so on...

© Stack Overflow or respective owner

Related posts about mysql

Related posts about select