Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

link between tables

I have the following script

QV

Vente:

LOAD

[Code Site]

      ,[Code Article]

,date

.....

from vente

How could I integrate the following query

SELECT [Code Site]

      ,[Code Article]

      ,[PrixVente]

      ,[Date debut]

      ,[Date fin ]

  FROM [dbo].[PrixVentePermanent]

How could I use intermatch and applymap to link between vente and prixventepermanent where vente.codesite=prixventepernent.codesite and [pPvente.codearticle=prixventepernent.codearticle

and vente.date between date debut and date fin ?

2 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Like this?

INTERVALMATCH(date, [Code Site], [Code Article])

LOAD [Date debut], [Date fin], [Code Site], [Code Article];

SELECT ...

FROM ...;


This will create a synthetic key (no danger there). You can perform a LEFT JOIN twice to add PrixVente into table Vente.


Best,


Peter

Anonymous
Not applicable
Author

see this, will be helpful for you:

IntervalMatch