Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Duplicate Records using JOIN

Does anyone know if this query can be used in in a LOAD statement?  I'm trying to JOIN to tables and need to only pull the top record so there are no duplicates.

SELECT *

FROM your_table

INNER

  JOIN (

  SELECT your

  , fields

  , Row_Number() OVER (PARTITION BY SessionStartTime ORDER BY ChTimestamp ASC) As row_num

  FROM your_table

  ) As x

WHERE x.row_num = 1

Labels (1)
0 Replies