Hi
So how can I write ANSI sql for below query
SELECT w.test_id,
(SELECT comp_code FROM compnay WHERE compnay_id = W.VALUE
)
FROM testTable W where w.value !='Any'
Here testTable contains a column "value(VARCHAR)" and it can have both integer and string values.
But company_id is an integer field .Its working when connecting to oracle .But not working in postgresql.(org.postgresql.util.PSQLException: ERROR: operator does not exist: numeric = character varying)
Can anyone help me to write this query to execute in all db.
Regards