I have encountered a strange behavior while executing an sql query on the Oracle view. The view contains multiple join. When I type a regular sql: select * from vView - I receive the error that view is not find select * from "vView" - The query is executed. I am wondering why ?
[url=http://www.freeimagehosting.net/image.php?138bcd008e.jpg][img]http://www.freeimagehosting.net/uploads/th.138bcd008e.jpg[/img][/url]
[url=http://www.freeimagehosting.net/image.php?e0738a36dd.jpg][img]http://www.freeimagehosting.net/uploads/th.e0738a36dd.jpg[/img][/url]
Below is my sql:
CREATE OR REPLACE FORCE VIEW "TMSCODE"."vCountEventsData" ("EV_ID_NUMBER", "SI_ID", "EV_YEAR", "EV_INS_DATE", "EV_REM_DATE", "EV_AADT_TOT", "EV_AADT_DIR1", "EV_AADT_DIR2", "EV_REPORT", "DIRECTION", "CNAME", "STATION_DESC") AS
SELECT "TMSCODE"."STC_EVENTS".EV_ID_NUMBER, "TMSCODE"."STC_EVENTS".SI_ID, "TMSCODE"."STC_EVENTS".EV_YEAR, "TMSCODE"."STC_EVENTS".EV_INS_DATE, "TMSCODE"."STC_EVENTS".EV_REM_DATE, "TMSCODE"."STC_EVENTS".EV_AADT_TOT, "TMSCODE"."STC_EVENTS".EV_AADT_DIR1, "TMSCODE"."STC_EVENTS".EV_AADT_DIR2, "TMSCODE"."STC_EVENTS".EV_REPORT, "TMSCODE"."D_DIRECTION".DIRECTION, "TMSCODE"."D_CONSULTANT".CNAME, "TMSCODE"."D_STATION_TYPE".STATION_DESC FROM "TMSCODE"."STC_EVENTS" INNER JOIN "TMSCODE"."D_DIRECTION" ON ("TMSCODE"."STC_EVENTS".EV_DIR = "TMSCODE"."D_DIRECTION".ID) INNER JOIN "TMSCODE"."D_CONSULTANT" ON ("TMSCODE"."STC_EVENTS".EV_CONS = "TMSCODE"."D_CONSULTANT".ID) INNER JOIN "TMSCODE"."D_STATION_TYPE" ON ("TMSCODE"."STC_EVENTS".EV_STATION_TYPE = "TMSCODE"."D_STATION_TYPE".ID) WITH READ ONLY