
	select file1.custid, file2.amt
	
	where file2.custid = file1.custid
	
	latest file2.effdate
	
	one_line file1.country, file1.state
	
	order file1.country
	

	if there is a 'one_line' clause, all selected fields must	
		be from the total line or aggregate functions			
		sum(x), avg(x), etc.
			
			
	
	
		  
		