Implement distinct for ungrouped tbls
Add grouped methods for distinct