Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi,i try to get the quanity group by size wise but i could not place the correct query below iam sending the coding i have follwing queryselect * from mr_masterselect * from mr_detailsselect * from tblstockitemselect * from tblsizemasterselect (select fldsizedesc from tblsizemaster where fldsizecode = b.fldsizecode) as size,sum(a.fldactualqty) from mr_details a , mr_master b where a.mrno=b.mrno group by a.fldsizecodelooking forward your valuable suggestionsDesikankannan
select m.fldsizedesc as size,sum(a.fldactualqty) from mr_details a join mr_master b on a.mrno=b.mrno join tblsizemaster mon m.fldsizecode = b.fldsizecodegroup by m.fldsizedesc