Skip to content
Advertisement

Query to join two tables with like operator

I have two table which has data as below

Table1

I would like to create where clause to get rows with like operator. for ex.

But my problem is that there are more than 15-20 different parameter in where clause, it can also increase latter.

So I have decided to create a new table in database lets called it Table2 with parameter as shown below.

Table2

My question is how can I join this table to give the same result like above query.

I am still learning joins so any advice will be helpful.

Advertisement

Answer

You can use exists:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement