Misread din query, Ah ledset; du önskar denna:
MELLANLÄGG IN I tblUserTeams (TeamName, LeaderCode, LeaderDiscipline, MemberCode, MemberDiscipline)
VÄRDERAR (”TEAM_C”, ”SQU01”, ”LITER”,
LÄMNAT (”WIL01--JACKWILLS, PTA”, (CHARINDEX (”-”, ”WIL01--JACKWILLS, PTA”) - 1)),
SUBSTRING (”WIL01--JACKWILLS, PTA”, CHARINDEX (”,”, ”WIL01--JACKWILLS, PTA”) +1, LEN (”WIL01--JACKWILLS, PTA”) - CHARINDEX (”,”, ”WIL01--JACKWILLS, PTA”)))