Skip to content

How to select distinct records from datetime column with with only date not time? #1832

Answered by simolus3
PawanGhewande asked this question in Q&A
Discussion options

You must be logged in to vote

I think date might be what you're looking for? If you want to select distinct dates, you could use selectOnly(yourTable, distinct: true)..addColumns([yourTable.dateColumns.date]). You could also group by this expression if needed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PawanGhewande
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants