SQLServerLog.com - Database Tips, Techniques and Tutorials

0

SQL SELECT TOP Clause

SQL SELECT TOP clause is used to retrieve top N records or by percentage value from specified table(s) and limits the records by mentioned value in the query. If you want to fetch records in...

0

SQL HAVING Clause

The HAVING clause allows us to specify conditions on the rows for each group in combination with the GROUP BY clause (see the GROUP BY clause), the HAVING clause is evaluated after rows are...

0

SQL MAX() Function

SQL MAX() function returns the largest value from the selected column. Syntax SELECT MAX(columnName) FROM TableName To understand MAX() function we will take example from [SalesPerson] table of AdventureWorks2012 database. Below is a selection...

0

SQL MIN() Function

SQL MIN() function returns the smallest value from the selected column. Syntax SELECT MIN(columnName) FROM TableName To understand MIN() function we will take example from [SalesPerson] table of AdventureWorks2012 database. We are selecting all rows...