每天一句SQL

SELECT  stock.IdStock
        ,stock.Descr       
FROM    [Inventory].[dbo].[Stock] stock
WHERE   stock.IdStock NOT IN
        (SELECT foreignStockId FROM
         [Subset].[dbo].[Products])

PS:每天只是看到哪句SQL就把哪句SQL贴出来

你可能感兴趣的:(sql)