Re: Multiplying Records
anonymous_at_discussions.microsoft.com
Date: 03/11/04
- Next message: fredg: "Re: Removing message boxes associated with append queries"
- Previous message: Carrie: "Re: Crosstab Query"
- In reply to: John Vinson: "Re: Multiplying Records"
- Next in thread: John Vinson: "Re: Multiplying Records"
- Reply: John Vinson: "Re: Multiplying Records"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Mar 2004 15:56:57 -0800
>-----Original Message-----
>Please post the SQL of your query.
This gives me 346 records:
SELECT RawReport.Name AS Expr1, Units.[Unit Name]
FROM RawReport INNER JOIN Units ON (RawReport.Div =
Units.Division) AND (RawReport.Unit = Units.[Unit Code])
GROUP BY RawReport.Name, Units.[Unit Name]
ORDER BY RawReport.Name;
This gives me 1117:
SELECT RawReport.Name AS Expr1, Units.[Unit Name], Shifts.
[Shift Name]
FROM (RawReport INNER JOIN Units ON (RawReport.Div =
Units.Division) AND (RawReport.Unit = Units.[Unit Code]))
INNER JOIN Shifts ON (RawReport.Shift = Shifts.[Shift
Code]) AND (RawReport.Div = Shifts.Division)
GROUP BY RawReport.Name, Units.[Unit Name], Shifts.[Shift
Name]
ORDER BY RawReport.Name;
I tried making an outer join but kept getting something
about "ambiguous" outer joins. Didn't understand the help
screen about this, either.
Thanks.
Alan
- Next message: fredg: "Re: Removing message boxes associated with append queries"
- Previous message: Carrie: "Re: Crosstab Query"
- In reply to: John Vinson: "Re: Multiplying Records"
- Next in thread: John Vinson: "Re: Multiplying Records"
- Reply: John Vinson: "Re: Multiplying Records"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|