Skip to content
Advertisement

DB2 functions returning error SQL CODE 4743?

I’ve been trying to solve this issue now for a while. I have a table called Students like:

I am using DBVisualizer right now to execute my statements, but I am trying to play around with something called LISTAGG() as a DB2 function:

However, every time I try to run this, I get this error:

And I have no idea how to fix it or why it is like this. I tried researching into this and someone suggested to do this: SET CURRENT APPLICATION COMPATIBILITY = 'V11R1' but there was no luck with this either, same error even though it ran.

I also tried to look at the version of my DB2 with SELECT GETVARIABLE('SYSIBM.VERSION') FROM SYSIBM.SYSDUMMY1 and this returns DSN12015 (no idea what this means).

I’m desperately looking for an answer or some help, thank you very much. The goal is to have the result look something like:

Advertisement

Answer

Try this:

ID GROUPED_CLASSES
3 A51,K5B,M5A,B51
4 XN5
5 XN5,A51
9 BX1,BX2,AK3
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement