I have the following select:
SELECT name, text, lang FROM texts
WHERE name IN @r_names
AND lang IN ( @lv_lang, 'E' )
INTO TABLE @DATA(lt_texts).
It will select texts multiple lines of texts for a given name.
How do I say that I want texts with lang = lv_lang, but if they don't exist, then select ones with lang = 'E' all within one request to the DB and no processing on the application side?