Hello,
I want to display data from a model in a table. The data is grouped into a type of category. This means that several records can logically have the same category. But I now want to use the category as a header. The category should then only appear once and the associated records should be displayed below. Is there a way to use distinct for SQL Server for columns or any other simple way?
I tried the following.
distinct_results = Meeting.objects.order_by('description').distinct('description')
Unfortunately I then get this message.
"DISTINCT" ON fields is not supported by this database.
Best regards
Patrick