Wily, Jouw oplossing wordt vertaald naar: 'like ''%'' + "Query_4201"."Omschrijving" + ''%''' Dick
Op 9 augustus 2016 22:26 schreef Rob Westein <[email protected]>: > Ziet er goed uit! > > > Op 09-08-16 om 19:24 schreef Wily Bijk: > > Dit is volgens mij een alternatief, maar ik kan het niet zo goed testen. >> >> SELECT "Query_4201"."Datum", "Query_4201"."IBAN", >> "Query_4201"."Benaming", >> "Query_4201"."Bedrag", "Query_4201"."Omschrijving", "Query_4201"."kost", >> "TekstKostp"."ID", "TekstKostp"."zoektekst", "TekstKostp"."kostp", >> "TekstKostp"."reden" >> FROM { "TekstKostp" >> RIGHT OUTER JOIN "Query_4201" >> ON "TekstKostp"."zoektekst" = "Query_4201"."Omschrijving" } >> WHERE "TekstKostp"."zoektekst" like '%' + "Query_4201"."Omschrijving" + >> '%' >> ORDER BY "Query_4201"."kost" >> ASC >> >> >> In Base is de % een joker, waar dat in access * is. Deze plak je voor en >> achter het veld omschrijving, zodat je een 'pattern' krijgt waar zoektekst >> aan moet voldoen. >> >> >> >> Op 09-08-16 om 15:27 schreef Rob Westein: >> >>> Hoe heb je dat in ms-access opgelost dan? >>> >>> Volgens mij moet het wel kunnen... >>> >>> /Rob >>> >>> >>> Op 09-08-16 om 15:19 schreef Dick Stomp: >>> >>>> Rob, bedankt! >>>> Ik gebruik http://www.w3schools.com/sql/ >>>> Daar staat dat de LIKE gevolgd moet worden door *pattern* en niet door >>>> een >>>> *veldnaam*. >>>> Het kan dus gewoon niet. >>>> Waarschijnlijk moet ik -afwijkend van het Procedureel Ontwerp- >>>> achterstevoren werken. Dus de zoekwoordjes worden leading, stuk voor >>>> stuk >>>> en alle records van de Betalingen worden keer op keer onderzocht op >>>> Omschrijving of het woordje daar in zit. Wel erg omslachtig... >>>> Dat ga ik uitzoeken. >>>> Dick >>>> >>>> 2016-08-09 14:52 GMT+02:00 Rob Westein <[email protected]>: >>>> >>>> ohh hier een link naar documentatie voor HSQL: >>>>> >>>>> http://hsqldb.org/web/hsqlDocsFrame.html >>>>> >>>>> /Rob >>>>> Op 09-08-16 om 14:48 schreef Rob Westein: >>>>> >>>>> >>>>> Op 09-08-16 om 09:59 schreef Dick Stomp: >>>>>> >>>>>> Dag Rob, >>>>>>> >>>>>>> Hoi Dick, >>>>>> >>>>>> Het ziet er als volgt uit: >>>>>>> SELECT "Query_4201"."Datum", "Query_4201"."IBAN", >>>>>>> "Query_4201"."Benaming", >>>>>>> "Query_4201"."Bedrag", "Query_4201"."Omschrijving", >>>>>>> "Query_4201"."kost", >>>>>>> "TekstKostp"."ID", "TekstKostp"."zoektekst", "TekstKostp"."kostp", >>>>>>> "TekstKostp"."reden" >>>>>>> FROM { "TekstKostp" >>>>>>> RIGHT OUTER JOIN "Query_4201" >>>>>>> ON "TekstKostp"."zoektekst" = "Query_4201"."Omschrijving" } >>>>>>> WHERE "TekstKostp"."zoektekst" = 'like "Query_4201"."Omschrijving"' >>>>>>> ORDER BY "Query_4201"."kost" >>>>>>> ASC >>>>>>> De fout zit in WHERE: de "like" wordt niet herkend en het statement >>>>>>> krijgt >>>>>>> enkel-quote's om zich heen. >>>>>>> >>>>>>> Op het eerste gezicht denk ik dat de WHERE statement niet correct >>>>>> is... >>>>>> Syntax is: WHERE <veldnaam> LIKE <conditie> >>>>>> >>>>>> /Rob >>>>>> >>>>>> Groet, >>>>>>> Dick >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>> Unsubscribe instructions: E-mail to [email protected] >>>>> ce.org >>>>> Posting guidelines + more: http://wiki.documentfoundation >>>>> .org/Netiquette >>>>> List archive: http://listarchives.libreoffice.org/nl/users/ >>>>> All messages sent to this list will be publicly archived and cannot be >>>>> deleted >>>>> >>>>> >>>> >>> >>> >>> >> >> > > > -- > Unsubscribe instructions: E-mail to [email protected] > Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette > List archive: http://listarchives.libreoffice.org/nl/users/ > All messages sent to this list will be publicly archived and cannot be > deleted > -- Ubuntu 14.04 LTS + FireFox 46.0.1 + LibreOffice 5.1.3.2 + gMail + DropBox https://sites.google.com/site/dickstomp/ -- Unsubscribe instructions: E-mail to [email protected] Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/nl/users/ All messages sent to this list will be publicly archived and cannot be deleted
