79538744

Date: 2025-03-27 11:51:51
Score: 1
Natty:
Report link

From ChatGPT:
In SQL Server, SUBSTRING() does not support negative indexes. So SUBSTRING('ANYSTRING', -1, 1) doesn't return the last character — it actually returns nothing.

To get the last character of the 'ANYSTRING' , you need to calculate the position using LEN('ANYSTRING').

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lim Justin