I have to restrict a join between 2 tables that have a N:M relationship.
The idea is to fetch only the records from the second table with the highest version_number for each id.
The tables are joined over the id field and the relationship is brought back to a N:1 giving proper results.
I have used thse constructions in the past, but I cannot recall the proper syntax.
A hint please (my sql routines are rusty)
Ties Blom
The idea is to fetch only the records from the second table with the highest version_number for each id.
The tables are joined over the id field and the relationship is brought back to a N:1 giving proper results.
I have used thse constructions in the past, but I cannot recall the proper syntax.
A hint please (my sql routines are rusty)
Ties Blom