I would like some assistance on the syntax on creating a rule that includes a where clause.
Here is what I have so far
CREATE RULE CodeRetrieve AS
ON SELECT TO RC.Code from RC WHERE RC.CODEID = FromQuery.CODEID
DO INSTEAD
RCAA.Code from RCAA WHERE RCAA.CODEID = FromQuery.CODEID
Basically, by default I want to redirect the query from one table to another and return the results from the RCAA table.
Reason? To avoid going thru the code in a gazillion places and changing the query. Just wanted to experiment with changing the code in one place, i.e. a database rule.
Thanks.
RCwhich selects fromRCAA?