select case when 'a' > 'b' then 0 else 1 end
from DUAL;
The DUAL table is present in every Oracle database. This special table
contains just one column. The column is named DUMMY, and it has a
datatype of VARCHAR2(1). The DUAL table contains only one row. That
row has a value in DUMMY of ‘X’.
The purpose of DUAL is simple—to have
something to run a SELECT statement against when you don’t wish to
retrieve any data in particular but instead simply wish to run a
SELECT statement to get some other task accomplished.
Verifying that an object exists:
OBJECT_ID (N'INTERFACE_DEFINITION', N'U')
In Oracle you may use this query:
select count(*) from all_objects where object_name = 'INTERFACE_DEFINITION';
all_objects
doesn't necessarily shows you all the objects in the database. It only shows you the objects on which a current user has any priviledges.