NEWID function is used to get unique value of type uniqueidentifier.
It is a nondeterministic means It returns different values every time it is called.
Syntax of NEWID Function :
NEWID ()
Return type of NEWID function is a uniqueidentifier.
Examples of NEWID Function :
Example 1 : Use of NEWID function in select clause
Output
BAF64B1B-9646-4AAD-8AC0-799CF6D95EDD
Above example returns unique id.