Maybe we should start from the beginning, are you asking how to run that query from your code or are you asking what that query does when it hits SQL server? Such as the underlying processes that take place.
These are extremely simple knowledge, in the network has a lot of documentation on how to use and access the data.You can find and read them. Because these are the basics
Bookmarks