Skip to content

Day: March 29, 2019

SQL RANK and DENSE_RANK

The functions RANK and DENSE_RANK are very similar to the ROW_NUMBER function. The difference is the ORDER_BY statement and the connections between these functions. The RANK function returns the same […]

SQL ROW_NUMBER

SQL ROW_NUMBER

Row_Number () is used to create a sort column in the record list that results from a sql query. In short, the rotating list is a function that creates line numbers for sorting. We can also group these line numbers by any field. This function comes with SQL 2005.