OK! Have following table with data ( just an example ) COL1 COL2 1 2 2 3 4 5 5 6 11 12 12 13 I can receive only one value from either column and I need to get the whole set. Number of related rows unknown. Q: Is it even possible to have query that will return the whole set - my guess is not. I think the looping through and retrieving all the values into array will work better. Just need an opinion from the side. Thanks!