|
-
Aug 29th, 2000, 03:11 AM
#1
Thread Starter
Member
i have two table
WorkOrder(WorkOrderNO, TotalQty)
Rework(WorkOrderNo, DefectQty, RepairQty, ScrapQty)
How can join this two table and show out the workorderno, the sum of defectqty, repairqty and totalqty?
-
Aug 29th, 2000, 06:47 AM
#2
*Luaghing*
If you have Access, Why not using the Query SQl designer.
It's real easy to use (Drag and Drop). 
-
Aug 29th, 2000, 09:27 AM
#3
You can do something like this:
Code:
SELECT
WO.WorkOrderNO,
Sum(RE.DefectQty) As Summary,
RE.RepairQty,
WO.TotalQty
FROM
WorkOrder WO,
Rework RE
WHERE
WO.WorkOrderNO = RE.WorkOrderNO
GROUP BY
WO.WorkOrderNO
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|