hmm... if its only up to maximum of 4 rows you can useSELECT Date,PARSENAME(REPLACE(Warehouse,',','.'),1) AS WareHouse,PARSENAME(REPLACE(BegBalance,'/','.'),1) AS BegBalanceFROM tableUNION ALLSELECT Date,PARSENAME(REPLACE(Warehouse,',','.'),2),PARSENAME(REPLACE(BegBalance,'/','.'),2)FROM tableWHERE PARSENAME(REPLACE(Warehouse,',','.'),2) IS NOT NULLOR PARSENAME(REPLACE(BegBalance,'/','.'),2) IS NOT NULLUNION ALLSELECT Date,PARSENAME(REPLACE(Warehouse,',','.'),3),PARSENAME(REPLACE(BegBalance,'/','.'),3)FROM tableWHERE PARSENAME(REPLACE(Warehouse,',','.'),3) IS NOT NULLOR PARSENAME(REPLACE(BegBalance,'/','.'),3) IS NOT NULL
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/