SQL RANK()
The RANK() function is a window function that is used to assign a rank to each row in the partition of a result set.
![]()
This website provides a SQL server Tutorial, SSRS, Power BI, Python, Azure basics and advanced tutorials for beginners and professionals .
You will find out a step-by-step walk through of the basics and advanced topics with practical and include numerous hands-on activities.
The RANK() function is a window function that is used to assign a rank to each row in the partition of a result set.
![]()
SQL Row_Number() is a ranking function/window function that is used to assign a sequential integer to each row within a partition of a result set. The row number starts with one for the first row in each partition.
![]()
The SQL EXCEPT clause is used to combine two SELECT statements and returns rows from the first SELECT statement that are not returned by the second SELECT statement.
![]()
The SQL INTERSECT clause is used to combine two SELECT statements, but returns rows only from the first SELECT statement that are identical to a row in the second SELECT statement.
![]()
The Concept of User Defined table type and table valued parameters were introduced in SQL server 2008.
![]()
How to get the full text descriptions / definitions of any stored procedures , UDF or triggers in SQL ? There are many ways to… Read More »Get the definitions of Stored procedures, User Defined functions and Triggers in SQL
![]()
A unique key constraint is a set of one or more than one columns of a table that uniquely identify a record in a database table.
![]()
Q 1 > SELECT Count(1) as Output 1> NULL 2> Error 3> 1 4> Invalid select statement Answer Q 2 > SELECT Count(*) as… Read More »SQL Q & A on SELECT Statement
![]()
What is the Difference between SQL Truncate and SQL Delete statements in SQL Server ?
![]()
The SQL TRANSLATE() is a string function that is used to replaces a sequence of characters in a string with another sequence of characters.
The function replaces a single character at a time. Until SQL Server 2016, we used use REPLACE() function to replace each character.
![]()
SQL SPACE() is a string function that replicates the number blanks that we want add to the given string.
Syntax
SPACE(number)
![]()
SQL DATEFROMPARTS() function is a date function that returns a date value that maps to a year, month, and day values.
![]()
The CASE statement has the functionality of an IF-THEN-ELSE . It goes through conditions and returns a value when the first condition is met . So, once a condition is true, it will stop reading and return the result.
![]()
The SQL Server Agent job is the specified action or series of actions that the SQL Server Agent will execute at any specific date time.
![]()
A correlated subquery is a subquery that uses the values of the outer query and it is evaluated for each row processed by the outer query
A correlated subquery always depends on outer query for its value. Because of this dependency, a correlated subquery cannot be executed independently as a simple subquery .
![]()
SQL UNION ALL operator is used to combine the result sets of two or more select statements .
![]()