Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

How to find if a data in one column is in the data in another column

$
0
0

I have two universes, that gets data from system A and B, each of them store data of automobile. system A stores the Vin number data in its full 17 digit, whereas system B stores data either 17 or last 8 digits of the vin. Some of the data in System A is in System b but could be just stored as 8 digit vin.

my task is to find out the the total count of unique Vin in the whole system.

here is the sample data

 

system A

business unitdateSOURCE SYSTEMvin
cars2015/04pcVU10D95V23Z64A56
cars2015/04pcKW99W47D82T88S55
cars2015/04pcHE59I87C89N67V35
cars2015/04pcXG60F16U74Z38L20
cars2015/04pcSA68U97O56J49O23
cars2015/04pcZJ60Z16I44L31R70
cars2015/04pcMJ28Z63H23Q49H95
cars2015/04pcUI53C83H31C45D10
cars2015/04pcRE92S32L32T19U35
cars2015/04pcXV99R93E37B29Z24
cars2015/04pcWJ11W64O56C54T86
cars2015/04pcTZ30N65W48X80S69
cars2015/04pcSL59J90R40U75R61
cars2015/04pcKJ20H71I70A99N18
cars2015/04pcQD57A19B78U91X18
cars2015/04pcUR40F37A82S65K75
cars2015/04pcSF31C46B39U14S30
cars2015/04pcDB35M38Y15R23M70
cars2015/04pcSO75R97M20X80I70
cars2015/04pcRD50Y14I20X80I70
cars2015/04pcMP48T45C52O66C66
cars2015/04pcIV91O88N63N23N20

 

 

Source System B

business unitdateSOURCE SYSTEMvin
cars2015/04Mac23Z64A56
cars2015/04MacKW99W47D82T88S55
cars2015/04Mac92D42KD7
cars2015/04MacXG60F16U74Z38L20
cars2015/04Mac56J49O23
cars2015/04Mac44L31R70
cars2015/04Mac98U65P40
cars2015/04Mac31C45D10
cars2015/04Mac32T19U35
cars2015/04MacXV99R93E37B29Z24
cars2015/04Mac56C54T86
cars2015/04Mac48X80S69
cars2015/04Mac40U75R61
cars2015/04MacMB82B85Y50E21D43
cars2015/04MacDG59G64S76S61Q95
cars2015/04MacFR71P67C50T88X90
cars2015/04Mac39U14S30
cars2015/04Mac15R23M70
cars2015/04Mac98A67Q11
cars2015/04Mac20X80I70
cars2015/04Mac52O66C66
cars2015/04Mac63N23N20

 

i need a table that is like this

Business unitDateCount
Cars2015/0427

 

 

Thank you very much in advance


Viewing all articles
Browse latest Browse all 5402

Trending Articles