Dear all,
I have a table (TableA) in Access looks like that:
P.S. Both fields are having "Text" datatype.
Now, I have to write SQL query which pass a number and find out the STockID, it is something like:
P.S. 51 is the value that pass to the SQL query
In the above example, the stockID that returns would be D003.
Hope you understand what I am asking, thanks.
I have a table (TableA) in Access looks like that:
Code:
STockID Number_List
------- -----------
D001 44,45,47,41,42
D002 1,2,3,5,58,60,61
D003 49,50,51,48,53,54
P.S. Both fields are having "Text" datatype.
Now, I have to write SQL query which pass a number and find out the STockID, it is something like:
Code:
Select STockID from TableA
where 51 in (number_list)
P.S. 51 is the value that pass to the SQL query
In the above example, the stockID that returns would be D003.
Hope you understand what I am asking, thanks.