Skip to content

Microsoft Access 2016 SQL Unnest Array

I am trying to take a table and in Microsoft 2016 Access and use SQL to unnest a single column into multiple rows instead. It is comma separated. I tried adding Unnest and keep getting errors, maybe I am missing something. This BOGO_Sale.promo_parent_skus is the only column I am trying to unnest into rows. An…

Calculate TimeDiff in Pandas based on a column values

Having a dataframe like that: Desirable result is to get aggregated IDs with time diffs between Start and End looking like that: Tried simple groupings and diffs but it does not work: How this task can be done in pandas? Thanks! Answer A possible solution is to join the table on itself like this: Output: