<Android: Kotlin Room how to take unique data from...
# stackoverflow
r
Android: Kotlin Room how to take unique data from table and use this in recycle view I have a table with lessons and I need to select all the unique group names from there to display them in the recycle view Lesson data class @Entity(tableName = "lesson_table") data class Lesson ( @PrimaryKey(autoGenerate = true) val id: Int?, @ColumnInfo(name = "lesson_name") val lessonName: String?, @ColumnInfo(name = "Group_name") val groupName: String?, @ColumnInfo(name = "day") val day: Int? ) LessonDAO @Dao interface LessonDao { @Query("SELECT * FROM...