SELECT distinct a.WSTOCKID  from 
stock a join STOCK_CROSS_SELL b on a.WSTOCKID = b.WSTOCKID
where a.WStockid = <@WSTOCKID@> 