hi all i am testing a query which is defined like this
declare @id varchar(30)
declare @lastname varchar(30)
declare @jobs varchar(30)
SET @id = '('1','2')'
SET @jobs = null
SET @lastname = NULL
SELECT idcol,
jobscol,
lastnamecol
FROM tbl_profile
WHERE idcol in (COALESCE('1,2',idcol))
AND
lastnamecol = COALESCE(@lastname,lastnamecol) AND
jobscol = COALESCE(@jobs,jobscol)
is the COALESCE function possible for where IN Clause statements
thanks