String agg ms sql. Split string c++. sql split string and take first.