$ 0 0 I think With statement is not supported by HANA. I guess you might use temp table to do your job. Frank