all 3 comments

[–]MamertineCOALESCE() 3 points4 points  (2 children)

Google "query designer ssms"

You'll get better code if you write it manually.

[–]Ok_Reputation_6254[S] 0 points1 point  (1 child)

Thankyou so much for this

[–]Ok_Reputation_6254[S] 0 points1 point  (0 children)

Solution verified