SELECT COUNT(*)
FROM table_emp
WHERE YEAR(ARR_DATE) = '2012'
GROUP BY MONTH(ARR_DATE)
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- Can I Comma Delimit Multiple Rows Into One Column? [duplicate]
- sql server 2008 management studio not checking the syntax of my query
- Is the NOLOCK (Sql Server hint) bad practice?
- How to create a table from select query result in SQL Server 2008 [duplicate]
- Parse comma-separated string to make IN List of strings in the Where clause
- SQL query to split column data into rows
- OPTION (RECOMPILE) is Always Faster; Why?
- Rename column SQL Server 2008
- Compare DATETIME and DATE ignoring time portion
- Split function in SQL Server 2008
- Remove numbers from string sql server
- How to find third or nᵗʰ maximum salary from salary table?
- SQL “between” not inclusive
- How do I edit a table in order to enable CASCADE DELETE?
- sql group by only rows which are in sequence
- How can I convert a Sql Server 2008 DateTimeOffset to a DateTime
- SQL Server SELECT LAST N Rows
- How can I group by date time column without taking time into consideration
- The transaction log for the database is full
- How to retrieve field names from temporary table (SQL Server 2008)
- When using GETDATE() in many places, is it better to use a variable?
- How do I change db schema to dbo
- Why & When should I use SPARSE COLUMN? (SQL SERVER 2008)
- Safest way to get last record ID from a table
- SQL Server: +(unary) operator on non-numeric Strings
- Use one CTE many times
- How to Select Every Row Where Column Value is NOT Distinct
- How to do a case sensitive GROUP BY?
- How to automatically generate unique id in SQL like UID12345678?