title: Sub String function in Teradata
body: <p>From the string '000-111-222-333' I need to extract '000-111' alone i.e., part of string before 2nd '-'in Teradata without hardcoding the position since number of characters in the string can vary.Thanks in advance</p>