  | 
			
				SoftTree Technologies 
				Technical Support Forums
			 | 
		 
		  | 
	 
	 
	
	
	
		
	
	
	
		| Author | 
		Message | 
	 
	
		
			judahr 
			 
			
  
			
			
				Joined: 09 Mar 2007 Posts: 320 Country: United States | 
			 
			  
		 | 
		
			
				  Derived table bug - Query Analyzer | 
				     | 
			 
			
				Start with a derived table based query like this (tables should exist and connection is on the database):
 
 
Select
 
From (Select Column1
 
         From Table1
 
         Group By Column1
 
         Having Count(*) > 1) dup
 
 
 
After the "dup", type INNER JOIN<space>
 
 
Query analyzer closes.
  | 
			 
		  | 
	 
	
		| Mon Mar 19, 2007 2:22 pm | 
		          | 
	 
	
		  | 
	 
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				Hi,
 
 
Thanks for the bug report. I can reproduce this issue on my system. I will send it to developers for further investigation.
 
For now, please you use "AS alias" syntax like "SELECT FROM (subquery) AS alias INNER JOIN ..."
 
 
 
	  | 
	
 
	  | 
	Select 
 
From (Select Column1 
 
From Table1 
 
Group By Column1 
 
Having Count(*) > 1) AS dup | 
	 
 
  | 
			 
		  | 
	 
	
		| Mon Mar 19, 2007 4:25 pm | 
		          | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
   
 
		 | 
	 
	  |