Answer the question
In order to leave comments, you need to log in
How to get records with exact match of desired values in a many-to-many relationship with a single query?
Duplicate question.
How to get records with exact match of desired values in a many-to-many relationship with a single query?
Answer the question
In order to leave comments, you need to log in
SELECT "CUSTOMVALUE1" as A
UNION
SELECT "CUSTOMVALUE2" as A
In what format does the data come from the client? JSON, XML? In any case, you can use the built-in DBMS libraries (MS SQL, ORACLE, etc) to translate incoming data into a table. Example on Oracle:
SELECT extractValue(value(t),'value') val, extractValue(value(t),'value/@id') attr
FROM TABLE(XMLSequence(XMLType('<form><value id="1">first</value><value id="2">second</value></form>').extract('form/value'))) t;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question