title: How do I perform the atan2 function in T-SQL?
body: <p>I need to execute the ATAN2 function in MS SQL Server. How do I do this?</p>
  
  <p>T-SQL appears to have all the usual math functions like cos, sin, radians etc, just not ATAN2. What is the function for this?</p>
  
  <p>Knowing how to do this in MySQL would be very useful as well, please?</p>