Answer Posted / dave
The dual table is a dummy table with one row and one column. Functions that do not require any table data can be evaluated by SELECTing from the dual table. For example,
SELECT SYSDATE FROM DUAL
returns the system time and date. The DUAL table is needed to get around the fact that the SELECT command in Oracle requires a FROM clause. For example, "SELECT SYSDATE" would fail because no tables were specified.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the differences in clustering in sql server 2005 and 2008 or 2008 r2? : sql server DBA
Can you redefine a table online?
What are the commands you'd issue to show the explain plan for "select * from dual"?
What the different topologies in which replication can be configured? : sql server DBA
how can you generate profile of pl/sql applications to identify performance bottlenecks?
suppose you want to audit specific activities on sensitive data. How can you achieve that?
What is the difference between the 2 operating modes of database mirroring? : sql server DBA
What is the default port no on which sql server listens? : sql server DBA
how can you initialize log miner?
Where would you look for errors from the database engine?
Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.
what is grd?
What are the different types of database compression introduced in sql server 2008? : sql server DBA
Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?
how can you implement fine-grained auditing?