Genius123
asked on
MS Access query
Hello,
I'm having trouble with this query. Here's the code and output as it is now:
SELECT qryArisGet.ID, qryArisGet.POS_NR, qryArisGet.Aris,"" as Shape
FROM qryArisGet
WHERE (((qryArisGet.ID)=12203737 ))
UNION all
SELECT qryShapeGet.ID, qryShapeGet.POS_NR, "" as Aris,qryShapeGet.Shape
FROM qryShapeGet
WHERE (((qryShapeGet.ID)=1220373 7))
What I need it to do though is group on ID and POS_NR. I believe you would do a Max on Aris and Shape to give you this but I can't get the syntax right. This is the result that I need:
Thanks for your help,
Joel
I'm having trouble with this query. Here's the code and output as it is now:
SELECT qryArisGet.ID, qryArisGet.POS_NR, qryArisGet.Aris,"" as Shape
FROM qryArisGet
WHERE (((qryArisGet.ID)=12203737
UNION all
SELECT qryShapeGet.ID, qryShapeGet.POS_NR, "" as Aris,qryShapeGet.Shape
FROM qryShapeGet
WHERE (((qryShapeGet.ID)=1220373
What I need it to do though is group on ID and POS_NR. I believe you would do a Max on Aris and Shape to give you this but I can't get the syntax right. This is the result that I need:
Thanks for your help,
Joel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Gustav.
Open in new window