Skip to content
Advertisement

How to write Like Condition within In Clause for thousands of Items

i want to filter Items of table PartMaster based on the input from table PARTINPUT using LIKE condition. Both the table has multiple entries.

Table 1: PartMaster

Table2: PartINPUT

I am trying to find a items from table PartMaster where

I have tried:

and

Results should return all the items from table PartMaster based on matching %part% from second input table.

Advertisement

Answer

If I get this right you want to join on the partno of partmaster beginning with a part of partinput and a dot. (Or maybe without the dot, remove it from the query in that case).

db<>fiddle

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