Hey, how would you write this query in Exposed? ```select name, min(time), max(time) from data group...
h
Hey, how would you write this query in Exposed?
Copy code
select name, min(time), max(time) from data group by name
In https://github.com/JetBrains/Exposed/wiki/DSL#group-by there is no good sample
b
something like
Copy code
val min = table.time.min() // so as not to create constantly
  val min = table.time.max()
  table.slice(table.name, min, max)
     .selectAll()
     .groupBy(table.name)
h
Thank you! This was too easy 😄