Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 alvinford
		
			alvinford
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		| TermStartDate | 
| 01/01/2010 | 
| 01/05/2012 | 
| 01/01/2013 | 
| TermStartDate | 
| 01/05/2012 | 
 alvinford
		
			alvinford
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Vlad,
Please Refer the Attached Sample. I have selected the discussed example .
Regards,
Alvin.
 vgutkovsky
		
			vgutkovsky
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I think I understand now. Are you saying the problem is that your mapping table only maps in 1 of multiple values on the key? That's how a mapping table works. If you have multiple values, you will either need to use a join or create a linked table.
Regards,
Vlad
 alvinford
		
			alvinford
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Vald,
Thanks for the Reply. If I use the left join the Number of rows are increasing and not getting the desired resuls.
As I have some further calculations I have to maintain in only one table can't go for a link table .
Regards,
Alvin.
 vgutkovsky
		
			vgutkovsky
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I would suggest going with the linked table approach. If your script has further calculations that require all fields to be in the same table, you can create a temporary table where you join the other tables together and then use GROUP BY and DISTINCT to get rid of any duplication in this temporary table.
Vlad
 
					
				
		
 ngulliver
		
			ngulliver
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
I would recommend having a look at Steve's blog:
http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/
This is very helpful in explaining Apply Map.
Neil
