Question
SQL Select with comma separated column value
Hi All
ASP VBScript
I have a DB column named allowed_contracts that stores a comma separated
list of of values e.g. 3, 5, 19, 44, 52
I need to select records based on a variable called varContractList that
contains another comma separated list i.e. 5, 44, 52
I only want to select records where the allowed_contracts column contains
each of the varContractList,
For example only return records that have 5 or 44 or 52 in thier
allowed_contracts column.
My brain is now in a persistant vegetive state trying to work this out so
any ideas would be much appreciated.
Regards
Bren
ASP VBScript
I have a DB column named allowed_contracts that stores a comma separated
list of of values e.g. 3, 5, 19, 44, 52
I need to select records based on a variable called varContractList that
contains another comma separated list i.e. 5, 44, 52
I only want to select records where the allowed_contracts column contains
each of the varContractList,
For example only return records that have 5 or 44 or 52 in thier
allowed_contracts column.
My brain is now in a persistant vegetive state trying to work this out so
any ideas would be much appreciated.
Regards
Bren
