I have to columns namely “ID_Siswa” and “ID_Kota” like picture below.
I have a column too namely “NRP_Siswa”, this column represent concatenation both “ID_Kota” + “ID_Siswa”. But between “ID_Kota” and “ID_Siswa”, it must be number format “31184000000”
I try to use this syntax:
IF (‘ID_Siswa’) < 10 THEN SET (‘NRP_Siswa’) = CONCAT(field(‘ID_Kota’), ‘31184000000’, field(‘ID_Siswa’));
ELSEIF (‘ID_Siswa’) < 100 THEN SET (‘NRP_Siswa’) = CONCAT(field(‘ID_Kota’), ‘3118400000’, field(‘ID_Siswa’));
ELSE SET (‘NRP_Siswa’) = CONCAT(field(‘ID_Kota’), ‘311840000’, field(‘ID_Siswa’));
END IF;
But, it shows me that the syntax is error
Anybody can help me, please?