Forum Discussion

RaMa87's avatar
RaMa87
Copper Contributor
Nov 29, 2019
Solved

Custom function to extract data from table

Hi all, I have a table with a date and an identifier field. The identifier field can have unique values as well as multiple entries of a unique identifier (ID). Simplified: Date -> ID1 Date -> I...
  • JKPieterse's avatar
    Nov 29, 2019

    RaMa87 I used three queries. First one is simply a direct copy of the table, sorted ascending on date (qryStartDates), Second is identical but sorted Descending on date (qryEndDates). Third is a full join of 1 and 2 on the ID column, filtered out the ones where dates from 1 and 2 are the same, then subtracted both dates.

Resources