adspace


How to apply filtering criteria at group level with the having clause in ms sql server?

Answer Posted / Gauraw Kumar Vaidya

To apply filtering criteria at group level using the HAVING clause in MS SQL Server, you can place your criteria after the GROUP BY clause and before the ORDER BY or SELECT statements. The syntax is: SELECT column_name, ... FROM table_name GROUP BY column_name HAVING condition.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain system functions or built-in functions? What are different types of system functions?

1067


Can we shrink data file in sql server?

1130


What is normalization and what are the advantages of it?

1057


What are different types of constraints?

1002


List out the different types of locks available in sql server?

1051


How to enter binary string literals in ms sql server?

1246


What are the kinds of subquery?

1109


How to connect php with different port numbers?

1191


How can you append an identity column to a temporary table?

1071


what is spatial nonclustered index

1059


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

1200


How raid can influence database performance?

1118


How to remove duplicate rows from table except one?

1090


What is in place upgrade in sql server?

1127


Where can you add custom error messages to sql server?

1215