I'm trying the following query with no luck:
SELECT B.id AS BookId, P.id AS PdfId FROM tbl_Books AS B
INNER JOIN tbl_PDF AS P ON P.FileName = B.ShortName || '.pdf'
COLLATE NOCASE
Is in Sqlite possible to use a clause in ON statement?
Thanks
I'm trying the following query with no luck:
SELECT B.id AS BookId, P.id AS PdfId FROM tbl_Books AS B
INNER JOIN tbl_PDF AS P ON P.FileName = B.ShortName || '.pdf'
COLLATE NOCASE
Is in Sqlite possible to use a clause in ON statement?
Thanks
Copyright © 2021 Jogjafile Inc.
I think what you need is
coalesce(b.ShortName, '.pdf'). Be aware, though, that it will return empty string ifb.ShortNameis an empty string (as opposed tonull).