I'm struggling with sqlite query since 2 days in Android.
Here is details -
I've two table
localeResource
Banner table
Table structure is -
LocalResource - id, locale, key, value
Banner - bannerid, bannername, bannerimage, bannerlink, bannertext, countryid, bannerassociate
My query is like -
Working query -
select ban.bannerid,loc.value,ban.bannerimage,ban.bannerlink,ban.bannertext,ban.countryid,ban.bannerassociatedstyle from banner ban left outer join localeResources loc on loc.key = ban.bannername and loc.locale='FR';
But I wanted query like -
select ban.bannerid,loc.value,ban.bannerimage,ban.bannerlink,locs.value,ban.countryid,ban.bannerassociatedstyle from banner ban left outer join localeResources loc, localeResources locs on loc.key = ban.bannername, locs.key = ban.bannertext and loc.locale='FR';
When I'm running second query my sqlite is hanging and crashing.
Please let me know what & where i'm missing.
keymatch with bothbancolumns, or with one of them?