How to query Left Join where the key of the 2nd table is null? #305
Replies: 3 comments 6 replies
-
yeah i also think there is an issue particularly when runing where query with left join. Let me have a look. |
Beta Was this translation helpful? Give feedback.
-
fixed and published in v - 4.4.8. @alisabrigok please check and confirm. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the swift reply. I checked, and yes there is an improvement on the where query but the case I mentioned still doesn't work. This time below query returns no results. However, it should have returned 19 records.
I feel we are so close to getting it fixed now. Previously the where clause in Left Join wasn't filtering records at all. Thanks again for the good work @ujjwalguptaofficial |
Beta Was this translation helpful? Give feedback.
-
Basically, this is what I'm trying to query:
In IDBStudio, if I perform the below query;
The where clause doesn't return the records where the customerId of "Orders" is null.
It just returns the whole "Customers" records with the columns of the "Orders" merged as all null.
I would expect this query to return me the records of "Customers" who don't have any "Orders".
Just to give a working SQL example, the below query on this website https://www.programiz.com/sql/online-compiler/ returns the exact desired result.
Since we can perform Left Join using JsStore as well, how to achieve this behavior? @ujjwalguptaofficial
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions