What SQL query to use to generate Table2 from Table1(tables shown below)?
Table2
Table1
Table2 needs to bin the timestamps from Table1<
Table1<