Good morning!
I have a question, I need to perform a cascade search with a string in the following 5 scenarios:
Scenario1: string = 'value1 value2 value3 value4 value5'
Scenario2: string = 'value1 value2 value3 value4'
Scenario3: string = 'value1 value2 value3'
Scenario4: string = 'value1 value2 '
Scenario5: string =' value1 '
The search must be cascaded in a table that contains a field for each value, being more or less like this:
For scenario 1:
SELECT * FROM 'Tabla'<br>
WHERE 'Campo1' = 'valor1'<br>
AND 'Campo2' = 'valor2'<br>
AND 'Campo3' = 'valor3'<br>
AND 'Campo4' = 'valor4'<br>
AND 'Campo5' = 'valor5'<br>
For scenario 2:
SELECT * FROM 'Tabla'<br>
WHERE 'Campo1' = 'valor1'<br>
AND 'Campo2' = 'valor2'<br>
AND 'Campo3' = 'valor3'<br>
AND 'Campo4' = 'valor4'<br>
And so on ...
The question is: in what way can I separate that value chain to encompass the 5 scenarios that will be variable?
Could the functionality of 'full-text search' serve me to perform the searches on the table using the string directly as a variable in the query?
I hope you can support me, thank you.