I have a select statement which returns one seqno value when one type value is entered. I need multiple seqno's returned when multiple type values are entered.
The statement is:
select seqno from ENPRISE_JOBCOST_JOBTYPEwhere [type] = 'storage'
The statement returns 5 for the seqno. I need to entered more than one value for [type]. For example 'storage,engineering'. This would return 5,6 for the values of seqno.
I am hung up on the exact syntax needed to accomplish this. My guess is something using the Split function or xml path. The [type] variable is nvarchar and the seqno variable is an integer.