Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails distinct

# Here, I am plucking student_id and student_grade based on the distinct student_grade records
StudentResult.distinct(:student_grade).pluck(:student_id, :student_grade)
 
PREVIOUS NEXT
Tagged: #rails #distinct
ADD COMMENT
Topic
Name
7+3 =