How i should use the hook_views_query_alter to query with DISTINCT but not with the nid. For example I have a basic view that brings a taxonomy term field, the title and a date field. What if I need to add DISTINCT to the taxonomy term field?

What i am trying to do is to bring one node per taxonomy. I need to use node view because i want to have expose filters for the date field and the taxonomy

Comments

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)