Table1
Values
9A 200x400x600
10B 400x200x500
....
Values Column datatype is nvarchar
Query
Select * from table1 where values like '" & textbox1.text & "%'
The above query is working, but I want to search in 4 ways
I want to search a column with every 3 digit
The query should not check space and x values from the column.
Expected Output
- if I type in textbox1 9A or 10A the query should return first 2 or 3 values
- If I type in textbox2 200 or 400 the query should return 200 from first row or 400 from second row
- If I type in textbox3 400 or 200 the query should return 400 from first row or 200 from second row
- If I type in textbox4 600 or 500 the query should return 600 from first row and 500 from second row
How to split the column value for search
Need query help
As you know the query is a the question is a bit confused. I will try, let me know if this is close that you are looking for.
I assume that:
Then, the query is:
edited: