Which of the following is NOT true about Django's distinct method?
Correct answer
C. It is only available for PostgreSQL databases
18 views
C. It is only available for PostgreSQL databases
18 views
The false statement is that distinct() is only available for PostgreSQL. Plain distinct() works on every backend.
What is PostgreSQL-only is passing field names — distinct("field") — which produces DISTINCT ON. That difference is the point of the question.
Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.