The DUALtable is a special one-row, one-column table present by default in Oracle and other database installations. In Oracle, the table has a single VARCHAR2 column called DUMMY that has a value of 'X'. It is suitable for use in selecting a pseudo column such as SYSDATE or USER.
Example use
Oracle's SQL syntax requires the FROM clause but some queries don't require any tables - DUAL can be used in these cases.
History
explains why he created DUAL:
I created the DUAL table as an underlying object in the Oracle Data Dictionary. It was never meant to be seen itself, but instead used inside a view that was expected to be queried. The idea was that you could do a JOIN to the DUAL table and create two rows in the result for every one row in your table. Then, by using GROUP BY, the resulting join could be summarized to show the amount of storage for the DATA extent and for the INDEX extent. The name, DUAL, seemed apt for the process of creating a pair of rows from just one.
Optimization
Beginning with 10g Release 1, Oracle no longer performs physical or logical I/O on the DUAL table, though the table still exists. DUAL is readily available for all the users in database.
Several other databases enable one to omit the FROM clause entirely if no table is needed. This avoids the need for any dummy table.
Firebird has a one-row system table RDB$DATABASE that is used in the same way as Oracle's DUAL, although it also has a meaning of its own.
IBM DB2 has a view that resolves DUAL when using Oracle Compatibility. It also has a table called sysibm.sysdummy1 that has similar properties to the Oracle DUAL one.
Informix: Informix version 11.50 and later has a table named with the same functionality but a more verbose name. You can use to create a name in the current database with the same functionality.
Microsoft Access: A table named DUAL may be created and the single-row constraint enforced via ADO
Microsoft SQL Server: SQL Server does not require a dummy table. Queries like 'select 1 + 1' can be run without a "from" clause/table name.
MySQL allows DUAL to be specified as a table in queries that do not need data from any tables. It is suitable for use in selecting a result function such as or , although it is not essential.
PostgreSQL: A DUAL-view can be added to ease porting from Oracle.
Snowflake: DUAL is supported, but not explicitly documented. It in the documentation.
SQLite: A VIEW named "dual" that works the same as the Oracle "dual" table can be created as follows:
SAP HANA has a table called DUMMY that works the same as the Oracle "dual" table.
Teradata database does not require a dummy table. Queries like 'select 1 + 1' can be run without a "from" clause/table name.