No, Your query will only return a set of products P
, where each e
in P
matches the following:
e
has aSKU
which hasskuType="DEFAULT"
ANDe
has aSKU
which isskuType="DEFAULT"
AND thatSKU
hasavailability a
WHEREa.available = true && a.day = 5
Your comment
I am thinking in above query available and a.day part will check in all the skus not just the default sku..
Yes, It the query execution will loop through your CROSS JOIN
set, but it will ONLY RETURN products that match the conditions given above.