I have a table with segment id, x and y coordinate I need to get the length of the segment. How can I get the length using something like this:
SUM(x1 + x2)*S