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

SQL Query Help

$
0
0

Hi,

 I have 2 tables. First table has 10 columns as below

col1 col2 col3 col4 col5 col6 col7 col8 col9 col10

Other tables is like below

Column1  condition1   value1     column2     condition2      value2     typ1       typ2

--------------------------------------------------------------------------------------

col1                  =        1234         col2         contians        'abs'      NFOMR  FFORM

col2                =           5678                                                       GFOMR  KFOOM

No using these 2 tables, i want to run thru all the conditon in table 2 with all the rows in table 1.

So for each row in table1, i shd be getting outout as either NFOMR/FFORM  OR FOMR/KFOOM

Appreciate your help.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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