adspace


How to get max 100 values from sql server

Answer Posted / ashis dey

select top 100 fieldname from tablename group by fieldname

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to enter binary string literals in ms sql server?

1246


Can we do dml on views?

1039


How to connect php with different port numbers?

1191


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1216


Why and when do stored procedure recompile?

1064


What kind of problems occurs if we do not implement proper locking strategy?

1501


Can one drop a column from a table?

1091


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


Why use identity in sql server?

1203


What is standby servers? Explain types of standby servers.

1081


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1024


What are the source of constraints?

1010


What is a scheduled job or what is a scheduled task?

1040


Can sql servers link to other servers like oracle?

919


What are the different types of subquery?

1235