D
deb
Need help with a query...
Tables -
t040Project (pk-ProjectID) 1-Many t51KeyMilestones - (pk-KeyMilestoneID)
I would like to show ProjectID data if the ProjectID is associated to two
KeyMilestonesSubID's ( 12 and 20)
example data.
ProjectID ProjectName ActualDt UnitNo KeyMilestonesSubID
111............ABC..............1/1/2001.....1.................12
112............XYZ..............2/1/2002.....1.................12
112............XYZ..............3/1/2002.....1.................20
113............RST..............3/1/2002.....0.................
114............LMN..............5/2/2001.....1................20
Query to show.
ProjectID ProjectName ActualDt UnitNo KeyMilestonesSubID
112............XYZ..............2/1/2002.....1.................12
112............XYZ..............3/1/2002.....1.................20
Because it is the only ProjectID that has both 12 and 20 in KeyMilestonesSubID
Thanks in advance
Tables -
t040Project (pk-ProjectID) 1-Many t51KeyMilestones - (pk-KeyMilestoneID)
I would like to show ProjectID data if the ProjectID is associated to two
KeyMilestonesSubID's ( 12 and 20)
example data.
ProjectID ProjectName ActualDt UnitNo KeyMilestonesSubID
111............ABC..............1/1/2001.....1.................12
112............XYZ..............2/1/2002.....1.................12
112............XYZ..............3/1/2002.....1.................20
113............RST..............3/1/2002.....0.................
114............LMN..............5/2/2001.....1................20
Query to show.
ProjectID ProjectName ActualDt UnitNo KeyMilestonesSubID
112............XYZ..............2/1/2002.....1.................12
112............XYZ..............3/1/2002.....1.................20
Because it is the only ProjectID that has both 12 and 20 in KeyMilestonesSubID
Thanks in advance