Viewing post 1 (of 2 total)
Why not pass in XML into the SP? I.e.
@BrandId_List XML --e.g. <Brands><id>1</id><id>2</id></Brands>
And then your query could look like this:
SELECT *
FROM
Sales s
INNER JOINProducts p on s.customerId = p.customerId
INNER JOINBrands b...
December 7, 2009 at 9:38 am
#1088677