Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 alternate to cursor

Author  Topic 

senpoly
Starting Member

19 Posts

Posted - 2007-06-13 : 10:10:51
dear friends

i have a table with 30 rows with multiple columns
in which one on columnname is empname
and it has values of "Senthil" and " mathi" each of 15 rows

i need a select command to get top7 rows from each name

with out using cursor
can anybody help me in this regard

senthil kumar

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-06-13 : 10:20:00
http://weblogs.sqlteam.com/mladenp/archive/2005/08/01/7421.aspx
point 2

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -