I'm wondering whether there is a way to display some default value for select statement where queries field doesn't exist.
For instance,
SELECT t.name, t.type, t.price, t.brand FROM some_table t;
If the 'brand' field doesn't exist in the some_table I would like this statement to display 'brand' as 'not available'.
Eventually I want to create a view from that select statement. I'm just curious whether there is a way to do that in PL/SQL.
EDIT: To avoid confusion, I want the statement to compile and work when the 'brand' column doesn't exist in the table.
name,type,price,brandfrom a table that cannot be determined at runtime?