Skip to content
Advertisement

Fixing set-returning functions are not allowed in UPDATE

After upgrading to Postgres 12 statement throws error set-returning functions are not allowed in UPDATE How to fix this ? In Postgres 9.1 it worked. I read similar answers here but they recomment to totally overwrite statement. Maybe there is simply change which makes this statement work ? Result should by any value of xpath expression in case if xpath

Why does this sql select selects everything 3 times

I have a homework where I need to display every employee together with his manager`s id (it needs to also display employees with no manager). All of them are in a same table named employees. However …

How to combine few row record in mySQL?

I am trying to combine few rows combine and output as 1 row. Here is my example and my expected output. I have tried group_concat and put if/ case condition in query but it seems somehow cannot output …

Advertisement