Post Closed
1139
Views
8
Comments
difference between "With" and "With or Without" joins in OutSystems
Question
Application Type
Reactive
Service Studio Version
11.54.43 (Build 63110)

Hello folks,

Can anybody tell the difference between "With" and "With or Without" joins in OutSystems

2025-09-21 06-51-05
Mohd Anees Mansoori

Hello 

You can refer to the below documentation for better understanding on joins in outsystems.

https://success.outsystems.com/documentation/11/reference/outsystems_language/data/handling_data/queries/supported_join_types/

Hope that helps

Regards

Anees


2024-05-22 10-21-41
Mohammad Hasib

•    Use “with” when you only want records that have matching values in both entities.
    •    Use “with or without” when you want all records from the primary entity, regardless of whether they have related records in the joined entity or not. 

2023-11-20 06-53-17
Neha Rathore
2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi,

In outsystems, 

1."With" is like "Full Outer Join"

2. "With or Witihout" is "Left Join"


Regards,

Wasimkhan S

2025-04-17 05-42-16
Ajit Kurane

Hi Kushal,

In addition to above answers,

1) With Join - You can use it to fetch all the records from both tables even if there is no match.

2)With or Without - It is similar to an SQL left outer join. It retrieves all records from the table on the left side of the join condition and only the matching records from the table on the right side. If there is no match, it still includes the record from the table on the left side of the join and fills the columns from the table on the right side with NULL values. 

Hope it helps to understand the concept.

Thanks.


UserImage.jpg
Sunil Botadara

Hello Kushal Kumar K A ,


With: This is used when we want all records from both entities even there is no match. It’s similar to a “Full Outer Join” in SQL.

With or Without: This is used when you want all records from the primary/left entity, regardless of whether they have related records in the joined entity or not. It’s similar to a “Left Join” in SQL.

In other words, a “With” join will return all records from both entities even there is no match. On the other hand, a “With or Without” join will return all records from the left entity/table and the matching records from the right entity/table. If there is no match, the result is NULL on the secondary entity side.

Thank you
Sunil Botadara

UserImage.jpg
Osama Ragab

Only With > >  Inner Join

With  >>  Outer Join

With or Without > >  Left Join

2016-04-22 00-29-45
Nuno Reis
 
MVP

Closing this topic.  One year was enough to explain the concept.