Forum Discussion
pade
Advocate III
5 years agoQuery Folding code for: SELECT * FROM T1 WHERE EXIST (SELECT 1 FROM T2 WHERE T1.C=T2.C)
I'm looking for a M-code that minic this SQL code: SELECT * FROM DimensionTable as d WHERE EXISTS (SELECT 1 FROM FactTable as f WHERE f.customerId = d.userId) Edit: Please note that Query Fol...
wdx223_Daniel
Community Champion
5 years ago= Table.SelectRows(DimensionTable,each List.Contains(FactTable[customerId],[userId]))
- pade5 years ago
Advocate III
Thanks wdx223_Daniel .
Although, I can't see that this supports Query Folding, so it will take a very long time to execute on large tables