SELECT ... FROM "G/L Entry" LEFT JOIN Dimension Set Entry ON "Dimension Set Entry"."Dimension Set ID" = "Dimension Set Entry"."Dimension Set ID"the LEFT JOIN will return always all the entries from "G/L Entry"
SELECT ... FROM "G/L Entry" INNER JOIN Dimension Set Entry ON ("G/L Entry" ."Dimension Set ID" = "Dimension Set Entry"."Dimension Set ID") OR ("G/L Entry" ."Dimension Set ID" = 0) // G/L Entry with NO dimensions
Answers
The "Use Default Values if No Match" is an equivalent to LEFT JOIN
the LEFT JOIN will return always all the entries from "G/L Entry"
What you need is something like this:
The latter is not possible to achieve in NAV Query
The workaround would be to use query with INNER JOIN, and combine in code its output with entries taken directly from G/L Entry table, filtered to "Dimension Set ID" = 0
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03