Minvalue.sql Select the Nth lowest value from a table
	
    
    
select level, min('col_name') from my_table where level = '&n' connect by prior ('col_name') <
'col_name')
group by level;
Example:
Given a table called emp with the following columns:
-- id number
-- name varchar2(20)
-- sal number
--
-- For the second lowest salary:
-- select level, min(sal) from emp
-- where level=2
-- connect by prior sal < sal
-- group by level
	
	
	
	
		
	
		
    
    
        
            
                - 
                Interview Candidate                        
-  Aug 29th, 2004
-  12
-  4791
 
     
     
	
    
          
              
            
              
                         
              
                    
              
              
     
    Showing Answers 1 - 12 of 12 Answers
			
				
				
       
       
		    
    
    
        
			
    
        
			
    
        
			
    
        
			
    
        
			
    
        
			
    
        
			
	
		
	
 
          
              
        
              
                      
              
                                   
  
                        
        Related Answered Questions
          
           
                              
            	
		Related Open Questions
		  
		   
	      
                       
  
                         
                    
            
Minvalue.sql Select the Nth lowest value from a table
Related Answered Questions
Related Open Questions