The following query:
SELECT SUM (peak_power) FROM t_mpi_pv WHERE info_id IN (
SELECT mp_info_id FROM t_mp WHERE mp_id IN (
ARRAY[29800001,29800008,29800015,29800022,29800029]
)
)
Doesn't work. I get the error:
"Operator does not exist: integer = integer[]".
But
SELECT SUM (peak_power) FROM t_mpi_pv WHERE info_id IN (
SELECT mp_info_id FROM t_mp WHERE mp_id = 29800001
)
Works.
What am I doing wrong?