Define MSSQL

SQL Data Types

SQL Commands

SQL Create Database

SQL Create Table

SQL Insert Into

SQL Select Query

SQL Orderby

SQL Update Command

Truncate Delete Drop

SQL Select Top

SQL Constraints

SQL Alias

SQL Joins

SQL Union, intersect

SQL Select Into

SQL Insert Into Select

SQL Indexes

SQL Alter Table

SQL AutoIncrement

SQL View

SQL Date Functions

SQL NULL Value

SQL Aggregate Functions

SQL Group By

SQL Scalar functions

Stored Procedure

MS-SQL group by

The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns.
Select column_name, aggregate_function(column_name) from table_name group by column_name

MS-SQL group by

The HAVING clause was added to SQL because the WHERE keyword could not be used with aggregate functions
Select employees.lastname, count(orders.orderid) as [Number of Orders] from (orders inner join employees on orders.employeeid = employees.employeeid) group by lastname having count(orders.orderid) > 10