GeeKs Blogging @ dotCOM

Let's share…
  • Home
  • About
  • How To – FAQs
  • Disclaimer
  • Terms & Conditions
10 Aug 2009

ORACLE – DUAL Table

by Nitin Jain



One of the first things that any introductory SQL tutorial teaches, is about the DUAL table in Oracle. It is the commonest of the lot, and extremely useful, I must say. The DUAL table is installed automatically with the standard Oracle Data Dictionary at the time of installing the ORACLE Database itself.

I wanted to write an introductory article on Siebel EIM today, however,somehow, DUAL seemed to catch a bigger fantasy! In any case, proficiency in DB is just as much desired at times, as in Siebel Architecture. I tried a little dabbling around with this little table. I am summing up my findings here.

As I said before, the DUAL table is installed along with the Oracle Data Dictionary

After logging into Oracle, I described the table. I was using Oracle’s SQL Developer, so if you were expecting the SQL prompt here, I am sorry! ;-)

DESC DUAL

Output:

desc dual
Name                     Null?    Type
—————————— ——– ———————————————————————————————–
DUMMY                             VARCHAR2(1)

1 rows selected

Next statement, “SELECT *”..

SELECT * FROM DUAL

Output:

DUMMY
—————-
X

I tried the above from my own login without any Admin priviledges on the Oracle DB and it seemed to work just as fine.
DUAL table can be very useful with the many uses that it ca inherently be put to.

Finding out the System Date:

SELECT SYSDATE FROM DUAL

Output:

SYSDATE
—————–
10-AUG-09

A number of system variables may be found out from the system this way, using the DUAL Table.

It can also be useful, if in case you want to output a particualar value in the output of an SQL Statement. For example:

SELECT ‘GEEKSBLOGGINGAT.COM’ FROM DUAL

Output:

‘GEEKSBLOGGINGAT.COM’
————————————
GEEKSBLOGGINGAT.COM

The above functionalities are of immense use, especially in the case of Siebel EIM where we need to twist the outputs as per our Business Requirements. One of the places it can be used is to set up the Headers to the SQL Output, while spooling it to a TXT file.

Now, the catch. Try doing the above on other tables, it will still work. Surprised?? However, we generally use DUAL in normal practice so as not to touch the other tables and tamper them by mistake. Also, DUAL will return exactly one record, while the other tables are likely to return much larger number of records, which could possibly keep varying with time.

There is obviously much more to the DUAL table. It is already available in detail on the Oracle website for the more inquisitive. The above was only a brief introduction.

  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • Delicious
  • FriendFeed
  • Gmail
  • Hotmail
  • Multiply
  • MySpace
  • Yahoo Buzz
  • Yahoo Mail
  • Share/Bookmark

Related posts:

  1. Oracle Siebel Certification needs hands on training – II Most of Oracle Certifications need a mandatory hands on training....
  2. Oracle 11g Certification coming soon Good news for all the Oracle 11g Database Administrator Certification...
  3. Changes to the Oracle Homepage? Just browsing through the Internet, particularly the Oracle Homepage, http://www.oracle.com,...
  4. Oracle Fusion Middleware 11g released Hi, We had shared the most happening news of the...
  5. Oracle buys IP Assets of Conformia Oracle recently announced that it has acquired the Intellectual Property...
  6. ORACLE announces new release of Coherence Now, this is going to come as good news to...
  7. Sun + Oracle is faster: Proof October 14 Well, here’s the second one in series for all the...

Tags: Database, ORACLE



This entry was posted on Monday, August 10th, 2009 at 8:52 PM and is filed under Database. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Click here to cancel reply.


« Siebel Configuration – A day in life
Siebel – Vanilla Functionality »



  • Admin Controls

    • Log in
  • Talk to us

    • Bouquets, brickbats, suggestions, complaints?

    • Click here...
  • Authorships

    • We are currently looking out for active authors. Are you willing to contribute?

    • Please click here

    • Everyone's invited..
  • Subscribe by Email


  • Subscribe

    • Entries (RSS)
    • Comments (RSS)
  • Siebel Bookshelf

  • Daily Dilbert

    •          
  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (106)
      • CRM News (3)
      • Sage Software / ACT! (1)
      • Salesforce.com (2)
      • Siebel CRM (98)
    • EAI (2)
    • FUN 'n' FROLIC (4)
    • Hot Technologies (2)
    • IT News (37)
    • Meet the Author (9)
    • ORACLE (5)
      • Database (2)
    • Product Demostrations (5)
    • Uncategorized (3)
  • Tag Cloud

    Admin Admin Notifications Applet Author Introductions Business Analysis Business Component Calculated Function Certification CFG file Client Configuration Critique CRM Database Debugging EAI EIM eScript Fundamentals Fusion Middleware Google IT News License Login Microsoft ORACLE Performance problems Product Defect Product Demostrations Salesforce Scriptless solutions Security Server Siebel Siebel Secrets SOA Tips Tools Tricks Tutorials Upgrade User Property Workarounds workflows



  • Archives

    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
  • Authors

    • Ankit Bhardwaj
    • Ashish Kaul
    • brijesh
    • Himanshu Bajpai
    • Madhvi Arora
    • nanpats
    • Nitin Jain
    • Prachi Sharma
    • Renuka Ankam
    • Vikas Luthra
  • Administrators

    • geeksblogging@gmail.com
    • admin@geeksbloggingat.com
  • Sponsors

Fresh Ideas

  • Siebel Openings - Contract to Hire
  • Google PAC-MAN
  • New Google Chrome Ads
  • Siebel Admin Mode Flag - II - Issue Log
  • Siebel - Admin Mode Flag
  • Narayan Patro
  • EAI Siebel Adapter BS - Upsert Multiple Child Records
  • Siebel - Upgrade Process - Part II
  • Siebel - Upgrade Process - Part I
  • Siebel - Upgrade Roadmap - Part II

Just Said

  • Nitin Jain on Siebel – Installer hangs midway
  • Thankful on Siebel – Installer hangs midway
  • Thota on Siebel EIM – Custom table mapping
  • Nitin Jain on Siebel – Upgrade Process – Part II
  • a siebel guy on Siebel – Upgrade Process – Part II
  • soumitri on Siebel Admin – Gateway Name Server – An overview
  • Babu Rajendra Prasad on Siebel – FINS Industry XML Query Service
  • Aravind on Siebel – Admin Mode Flag
  • Surender on Oracle Siebel Certification needs hands on training
  • Bruce on Siebel – SIS OM PMT Service

Most Commented

  • Siebel - SIA BC Utility Service - Loop multiple records
  • Siebel - Installer hangs midway
  • Siebel - Adding License Keys to Sample
  • Siebel - Popup Update Only
  • Siebel - Reading data directly from Siebel SRF
  • Siebel - EAI Queue - Usage
  • Siebel - Looping multiple records - Update records
  • Siebel - SIS OM PMT Service
  • Siebel Tools hangs when checking out objects
  • Siebel - Automatic User Logout

Old Favourites

  • Highrise Customer Relationship Management
  • Siebel - Autosave Opportunity data - Sample Code
  • Siebel - Autosave Opportunity data - The concept
  • Renuka Ankam
  • Siebel - Merge Records - Checklist
  • Siebel - Fetch Active view properties - III
  • Oracle 11g Certification coming soon
  • Siebel - Fetch Active view properties - II
  • Siebel - Fetch Active view properties
  • Siebel - Automating Merge Records by script - II

If you also want to write on GeeksBlogging@dotCOM, click here. Area of Specialization no constraint. Become Famous!


Entries (RSS) and Comments (RSS).