sql server - Not equal to is not working in sql query -


hi have tried data tables using below query not working..

    select     productmaster.productname + '(' + convert(nvarchar(10), 0) + ')' orderedproducts,     branchname + '(' + convert(nvarchar(10), sum(stockinward.qty)) + ')' currentstock,     setup.id branchid productmaster inner join stockoutward     on productmaster.productid = stockoutward.productid inner join stockinward     on productmaster.productid = stockinward.productid     , stockinward.stocklocation <> stockoutward.location inner join setup     on stockinward.stocklocation = setup.id stockoutward.productid = '7' group    productmaster.productname,             stockoutward.qty,             branchname,             setup.id 

it displaying records table stockoutward.

try in inner join move <> in clause. , in sample, have try more simple query (select 1 simple element , add 1 one innerjoin.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -