Skip to content
Advertisement

Extract data with condition and grouping from MS Access DB Table

I have the following table in MS Access :

I would like to extract using SQL the FID in the following way:

This will be a subquery, so I can’t use UNION. (I tried with UNION, but it gives: “this operation is not allowed in subqueries”)

The header of SirData is:

The header of SirFoto is:

My query looks like this:

Advertisement

Answer

You seem to want the latest row, with a preference for “true”. This suggests:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement