G
Gwenk
Hi, I need help please
Trying to do a select query where I only want one row returned if a field
has two values>
Example: Joe Bloggs can have two records one for SUBSTANTIVE and one for
HDA, however if both exist I only want HDA to be returned.
Name: Joe Bloggs
Duty Type: SUBSTANTIVE
2nd Record
Name: Joe Bloggs
Duty Type: HDA
I can get the query to retun just Substantive or just HDA but I have other
records that are ONLY Substantive - so I only want the records where they
have BOTH Substantive and HDA to return only HDA and all the other records to
return SUBSTANTIVE.
ANy help appreciated.
Trying to do a select query where I only want one row returned if a field
has two values>
Example: Joe Bloggs can have two records one for SUBSTANTIVE and one for
HDA, however if both exist I only want HDA to be returned.
Name: Joe Bloggs
Duty Type: SUBSTANTIVE
2nd Record
Name: Joe Bloggs
Duty Type: HDA
I can get the query to retun just Substantive or just HDA but I have other
records that are ONLY Substantive - so I only want the records where they
have BOTH Substantive and HDA to return only HDA and all the other records to
return SUBSTANTIVE.
ANy help appreciated.