A table contains list of customers and his city with other
details. Each customer has a unique number and the table
consists millions of data. Query is: I want to retrieve 10
customers from each city, no script, only from single query?

Answer Posted / sonal parekh

select Top 10 CustomerName, city from customer

Is This Answer Correct ?    5 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql service broker?

661


What is log cache in sql server?

613


What is the Disadvantage of indexed sequential file.

705


What are sql dirty pages?

658


Where can you add custom error messages to sql server?

666






Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

639


How to connect of datebase with sql express.?

731


What language is sql server written in?

615


How to provide default values to stored procedure parameters?

657


what's the maximum size of a row? : Sql server database administration

635


explain what is raid and what are different types of raid configurations? : Sql server database administration

628


We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

993


How can a user-defined datatype be created?

639


What are the dis_advantages of stored procedures, triggers, indexes?

1787


Delete duplicate rows without using rowid.

1173