I put the following script into "Lines" at design time or at run time and I get a 942 error. If I trap the error and throw it into the bin bucket - no harm no foul. The view is created and I can look at it in pl/sql. If i run the script in pl/sql I get no error
CREATE VIEW I127_1 AS
SELECT F.Series_Key, F.Formula_Key, L.Amount AS IAMT_1
FROM Formula F, Ingrd_Level L, Ingrd I
WHERE F.Formula_Key=L.Formula_Key
AND I.Ingrd_Key=L.Ingrd_Key
AND I.Chem_Synonym_Key=2839
AND L.Amount>=0 AND L.Amount
CREATE VIEW I127_1 AS
SELECT F.Series_Key, F.Formula_Key, L.Amount AS IAMT_1
FROM Formula F, Ingrd_Level L, Ingrd I
WHERE F.Formula_Key=L.Formula_Key
AND I.Ingrd_Key=L.Ingrd_Key
AND I.Chem_Synonym_Key=2839
AND L.Amount>=0 AND L.Amount