How to apply filtering criteria at group level with the having clause in ms sql server?
Answer / 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 |
What is updatable resultset?
How can you know if the row fetched from cursor is still valid in underlying table?
What are the different types of lock modes in sql server 2000?
Do you know how to send email from database?
Explain the third normal form(3nf)?
What is user-defined inline table-valued function?
how to find the particular row in table?(means suppose one table contain 10 rows , in these 10 rows how to find the particular row(example in 10 rows i want 5 row how)?
16 Answers Accenture, IBM, Marlabs,
there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration
what is the maximum size of a row in sql server 2000 and 2005
How we Resize table,temp table, database and log file size in SQL Server 2005
What is a SQL Server Temporary Table?
How to create a ddl trigger using "create trigger" statements?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)