@blimkemann wrote:
How can I reproduce the ORDER BY clause of the following query using QueryBuilder in Coucbase Lite (c#)?
Also, is it possible to do a join with the double pipe (||) in QueryBuilder?
SELECT c.CardName AS CardName, h.CardName AS CardNameH
FROM RedbookCore AS g
LEFT JOIN RedbookCore AS c ON meta©.id = (‘UserCard~’ || g.CardGuid)
LEFT JOIN RedbookEBookH2 AS h ON meta(h).id = (‘Directory~’ || g.CardGuid)
WHERE meta(g).id LIKE ‘UserCardGrouping~%’
ORDER BY UPPER(IFMISSINGORNULL(c.CardName, h.CardName));
Posts: 1
Participants: 1