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
Post a Comment