Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

list of Like condition from one Lookup table.

$
0
0

Hi,

I have 2 tables.
SourceData table and LookUp table .
SourceData table has one column called SName

SName

Jayesh  Krishnan
Karthik Kumar
Liju    Sharma
Kumar Jayesh
Kumar Pradeep


Lookup table has one column called LName(Lookup table is the one which is required to look up with "like" condition)

LNamne

Kumar%
%Krishnan

I need to query SourceDate table with the like condition mentioned in lookup table.
So my result based on above two tables should look like

Jayesh  Krishnan
Kumar Jayesh
Kumar Pradeep


Please help me in this regard.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>