Skip to content
Advertisement

Replace text from VIEW Definition

I have the following VIEW definition:

Scenario 1: Want to remove(or replace with empty string) table t1 select statement.

View should look like:

Scenario 2: Want to remove table t4 select statement.

View should look like:

Note: Depends on the requirement may want to remove any select statement from VIEW definition.

Advertisement

Answer

Instead of view, create inline table function also know as view with parameters. For example:

You can use the function in joins like view, but you can pass which data to be returned. For example:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement