| 
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| ffa330 
 
 
 Joined: 29 Jun 2006
 Posts: 1
 Location: Luxembourg
 
 | 
			
				|  Posted: Thu Jun 29, 2006 1:52 am    Post subject: SQL get top rows for each other columns values |   |  
				| 
 |  
				| i have a logical problem with SQL language i.e: col1    col2
 -----+------
 ...   a  !   value1
 ...   a  !   value2
 ...   a  !   value3
 ......
 ...   a  !   valuen
 ...   b  !   value11
 ...   b  !   value12
 ......
 ...   b  !   valuem
 ...   c  !   value21
 ......
 I need to get the 5 first lines for each value of col 1
 Thanks in advance...
 |  |  
		| Back to top |  |  
		|  |  
		|  |  
  
	| 
 
 | 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
 
 |  
 Powered by phpBB © 2001, 2002 phpBB Group
 
 |