Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Update Query with Join

$
0
0

select * from S_products where Serial in 
(
select Max(serial)as Serial
FROM S_products A where StoreCode='DEIRA' and ItemCode in (select ItemCode from PUBS..DEIRAVARIANCE16122013) group by ItemCode
)

the above Query result I am getting results

Serial,ItemCode,qty,abgprice 

Now I want to update qty= qty+varientqty

Another Table : StoreExcel, It has ItemCode,varientqty

So I want to Join the abov atable with abov query and update the qty corresponding to itemcode

Please format tht query


AK


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>