meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sap_hybris_commerce:import_export:examples-of-flexible-search-queries [2019/08/19 14:59] – Antonio Robirosa | sap_hybris_commerce:import_export:examples-of-flexible-search-queries [2020/06/29 12:03] (current) – [Outer joins] Antonio Robirosa | ||
---|---|---|---|
Line 39: | Line 39: | ||
WHERE {vi.status} = ' | WHERE {vi.status} = ' | ||
</ | </ | ||
+ | ===== Outer joins ===== | ||
+ | * Modified point of services or their address | ||
+ | <code sql> | ||
+ | SELECT {p.pk } | ||
+ | FROM {PointOfService as p | ||
+ | LEFT OUTER JOIN Address as a | ||
+ | ON {p.address} = {a.pk}} | ||
+ | WHERE {p.modifiedtime} >= ' | ||
+ | OR {a.modifiedtime} >= ' | ||
+ | ORDER BY {p.baseStore}, | ||
+ | </ | ||
+ | |||
===== Subqueries ===== | ===== Subqueries ===== | ||
* Get the pk of the warehouses which have at least one plzRange. | * Get the pk of the warehouses which have at least one plzRange. | ||
Line 135: | Line 147: | ||
* The question marks must be replaced with the values of the Hybris' | * The question marks must be replaced with the values of the Hybris' | ||
- | {{: | + | {{ : |
- | {{: | + | {{ : |
- | {{: | + | {{ : |
-- Based on Hybris 6.6 | -- Based on Hybris 6.6 |