RE: missing data
- From: Jerry Whittle <JerryWhittle@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 1 Dec 2008 11:07:02 -0800
SELECT PART.PART_ID,
(Select Max(LINE_ID)
FROM PART as P2
WHERE P2.PART_ID = PART.PART_ID) AS LINE_IDs,
(Select Max(PLANT_ID)
FROM PART as P2
WHERE P2.PART_ID = PART.PART_ID) AS PLANT_IDs
FROM PART
ORDER BY PART.PART_ID;
Change the table name of 'PART' to the correct name.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
"Ra" wrote:
I have the following table:.
PART_ID LINE_ID PLANT_ID
A0322 AA1N PFM
A0322 AA1N PFM
A0322
A0322 AA1N PFM
B0316 BB1C PFM
B0316 BB1C
B0316 PFM
B0316 BB1C
Any way I can run a query with a function that fills up the two fields with
missing data in the following format:
PART_ID LINE_ID PLANT_ID
A0322 AA1N PFM
A0322 AA1N PFM
A0322 AA1N PFM
A0322 AA1N PFM
B0316 BB1C PFM
B0316 BB1C PFM
B0316 BB1C PFM
B0316 BB1C PFM
Thank you,
- References:
- missing data
- From: Ra
- missing data
- Prev by Date: Re: Lookup consolidation
- Next by Date: setting field to null
- Previous by thread: Re: missing data
- Next by thread: Lookup consolidation
- Index(es):
Relevant Pages
|