| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -119,7 +119,8 @@ bund_apnr as parent | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					from cifx where key=11  | 
					 | 
					 | 
					 | 
					from cifx where key=11  | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy  | 
					 | 
					 | 
					 | 
					union select 'Ausland' druck , '1' apnr, 'alle' as parent from xdummy  | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					union select druck,apnr,'1' from cifx where key=747 and parent is not null  | 
					 | 
					 | 
					 | 
					union select druck,apnr,'1' from cifx where key=747 and parent is not null  | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					union select druck, '' || astat::integer, bund_apnr from cifx where key=12 and apnr != 'D' | 
					 | 
					 | 
					 | 
					union select druck, case when astat='' or astat is null then apnr else astat end ,  | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					case when bund_apnr='' or bund_apnr='---' or bund_apnr is null then '-9999' else bund_apnr end from cifx where key=12 and apnr != 'D' | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					union  | 
					 | 
					 | 
					 | 
					union  | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy; | 
					 | 
					 | 
					 | 
					select 'unbekannt' druck, '-9999' apnr, 'alle' as parent from xdummy; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					]]></sql> | 
					 | 
					 | 
					 | 
					]]></sql> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |