Lets say i have two tables EMPLOYEE and INCHARGE_ROOM , EMPLOYEE.INCHARGE_ROOMS has | delimted data of INCHARGE_ROOM.ID
EMPLOYEE
ID NAME INCHARGE_ROOMS
1 K 1|2|3|4
2 S 2|4|5
INCHARGE_ROOM
INCHARGE_ROOM_ID INCHARGE_ROOM_NAME
1 RED
2 BLUE
3 YELLOW
4 ORANGE
5 BLACK
If i want to
SELECT ALL THE ROOMS FOR WHICH K IS INCHARGE.
The Expected result is
NAME INCHARGE_ROOM
K RED
K BLUE
K YELLOW
K ORANGE