Comments on: Oracle 11g – Virtual Columns – to publish derived column values without storing them. And more… Friends of Oracle and Java Sun, 31 Aug 2014 06:57:42 +0000 hourly 1 By: Lucas Jellema Thu, 04 Oct 2007 09:36:06 +0000 Arnoud, unfortunately the column expression may only refer to columns in the table on which the Virtual Column is defined.

However, you can use a user defined function in the Virtual Column expression; that function could perform a query from another table! By doing so, you violate the DETERMINISTIC character of the function – on your head be the consequences – and if you do not use the PRAGMA AUTONOMOUS_TRANSACTION you can run into Mutating Table problems, but otherwise it could work that way.

best regards, Lucas

By: Arnoud Roth Thu, 04 Oct 2007 09:28:14 +0000 This is really great stuff!
One question: Is is also possible to define a virtual column to a table based on information stored in another table (e.g. add a virtual column address to emp)