Hi I have a table with 2 columns s below. What i want to achieve is a lookup like functionality. What i mean is i want to be able to pass '1','7','9' and get back 'Name1','','Name9' Any thoughts on how this can be achieved?
I tried using Select * from table where Col1 in ('1','7','9') but the output i get from that is 'Name1','Name9'.. the gap for 7 is omitted..
Table1
------------
Col1 | Col2
1 | Name1
2 | Name2
3 | Name3
4 | Name4
5 | Name5
8 | Name8
9 | Name9
10 | Name10
thanks
Anant
I tried using Select * from table where Col1 in ('1','7','9') but the output i get from that is 'Name1','Name9'.. the gap for 7 is omitted..
Table1
------------
Col1 | Col2
1 | Name1
2 | Name2
3 | Name3
4 | Name4
5 | Name5
8 | Name8
9 | Name9
10 | Name10
thanks
Anant