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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 inner join and cross join

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-07 : 07:40:48
ric ian writes "I really need help about my querry problem guys.

I hav 3 tables which are MixMaterialHeader, PipeIngredients and
Itembalance.

MixMaterialHeader columns are mmhID, [date], source, ref,
MixedMaterialID,
LocationID, ProducedQty, SizeID

PipeIngredients columns are PipeManufactureIngID, PipeMHeaderID,
itemID,
quantity, sizeID

Itembalance columns are ItemID, LocationID, PreviousQty,
TransactionQty,
[date], avecost, trtype, trid, TransactionCost, PreviousCost

My problem is how can i get the sum of MixMaterialHeader.Qty, sum of
PipeIngredients.Qty, and Itembalance.PreviousQty?"

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2005-11-07 : 07:56:26
Which is the columns which is linking 3 tables..
??

Complicated things can be done by simple thinking
Go to Top of Page
   

- Advertisement -