hi..
i want to Convert multiple rows into one row - SQL Server .
i have used
DECLARE @str varchar(4000)
SET @str = (SELECT MULITPLE_TITLEIDS + ',' FROM Titles WHERE FILE_TYPE='PDF' FOR XML PATH(''))
SET @str = SUBSTRING(@str,1,LEN(@str)-1)
SELECT @str as MulitpleIDs
it gives the multipleid's in a single row
now i want to fetch the id matched values from another table i wrote query like this
SELECT * FROM PRODUCTS WHERE ID IN(@str)
now it gives the error message as
"Error converting data type varchar to bigint."
but i want to get id values from my product table.
how to do this..
need ur suggetsions with examples
regards
gopal.s