<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Oracle&#8217;s Dual Table</title>
	<atom:link href="http://www.lifeaftercoffee.com/2006/08/16/dual/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2006/08/16/dual/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 23 Nov 2011 03:01:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: lkeria</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-375838</link>
		<dc:creator>lkeria</dc:creator>
		<pubDate>Mon, 21 Jun 2010 14:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-375838</guid>
		<description>You can also use the DUAL table tu test the avaibality of the database. Select 1 from dual;</description>
		<content:encoded><![CDATA[<p>You can also use the DUAL table tu test the avaibality of the database. Select 1 from dual;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ymonette</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-369600</link>
		<dc:creator>ymonette</dc:creator>
		<pubDate>Mon, 21 Jul 2008 16:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-369600</guid>
		<description>Select sex
from (table name)
order by sex ASC;

This will separate M from F

Otherwise if you want just M  (or just F) 

Select sex
from (table name)
where sex = &#039;M&#039;;</description>
		<content:encoded><![CDATA[<p>Select sex<br />
from (table name)<br />
order by sex ASC;</p>
<p>This will separate M from F</p>
<p>Otherwise if you want just M  (or just F) </p>
<p>Select sex<br />
from (table name)<br />
where sex = &#8216;M&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goutam</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-364682</link>
		<dc:creator>goutam</dc:creator>
		<pubDate>Sun, 20 Jan 2008 14:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-364682</guid>
		<description>hi 
its a beautiful sight,my question is iam haveing a column named sex

in which a subdivsion male and female catgeory is there and i have 

some memers underit how can i retrive the male and female seperately

in a single statment.</description>
		<content:encoded><![CDATA[<p>hi<br />
its a beautiful sight,my question is iam haveing a column named sex</p>
<p>in which a subdivsion male and female catgeory is there and i have </p>
<p>some memers underit how can i retrive the male and female seperately</p>
<p>in a single statment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norman</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-358755</link>
		<dc:creator>Norman</dc:creator>
		<pubDate>Thu, 10 Jan 2008 15:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-358755</guid>
		<description>Along with Dov Wasserman, author of comment #5, I wonder how the name &quot;Dual&quot; was selected.  We might ask where the name was first used and who were the contributors.  Let&#039;s keep looking for an answer.

Good luck!

Norman</description>
		<content:encoded><![CDATA[<p>Along with Dov Wasserman, author of comment #5, I wonder how the name &#8220;Dual&#8221; was selected.  We might ask where the name was first used and who were the contributors.  Let&#8217;s keep looking for an answer.</p>
<p>Good luck!</p>
<p>Norman</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd Eckenfels</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-334064</link>
		<dc:creator>Bernd Eckenfels</dc:creator>
		<pubDate>Sat, 24 Nov 2007 00:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-334064</guid>
		<description>Some Application Servers use the &quot;select &#039;X&#039; from DUAL;&quot; dummy statement to verify the ORacle Connection is working. This used to make lots ofproblems because that table got quite &quot;hot&quot;. This is why Oracle 10g has a special Optimizer for this Table.

Greetings
Bernd</description>
		<content:encoded><![CDATA[<p>Some Application Servers use the &#8220;select &#8216;X&#8217; from DUAL;&#8221; dummy statement to verify the ORacle Connection is working. This used to make lots ofproblems because that table got quite &#8220;hot&#8221;. This is why Oracle 10g has a special Optimizer for this Table.</p>
<p>Greetings<br />
Bernd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dov Wasserman</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-272557</link>
		<dc:creator>Dov Wasserman</dc:creator>
		<pubDate>Fri, 24 Aug 2007 15:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-272557</guid>
		<description>I find it amusing that the table explicitly created for the purpose of having one row is called dual. Anyone happen to know why that name was chosen? I&#039;m sure there&#039;s some interesting historical etymology. Well, interesting to some of us database + word geeks.</description>
		<content:encoded><![CDATA[<p>I find it amusing that the table explicitly created for the purpose of having one row is called dual. Anyone happen to know why that name was chosen? I&#8217;m sure there&#8217;s some interesting historical etymology. Well, interesting to some of us database + word geeks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-151371</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Fri, 13 Apr 2007 22:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-151371</guid>
		<description>Twingle,

Sorry for the delayed response.

You can actually select all sorts of things from any table.  Try this:

&lt;code&gt;select 4+3, sysdate, &#039;some text&#039; from user_tables;&lt;/code&gt;

The values will be repeated for every record in user_tables.  Basically these values aren&#039;t selected from the table, but are rather provided as constant values, independent of the table contents.

It&#039;s a bit tricky, but this functionality allows us to format the output like in the following (which also uses the double-pipe concatenate operator):

&lt;code&gt;select &#039;The user &#039; &#124;&#124; username &#124;&#124; &#039; has a status of &#039; &#124;&#124; account_status
from dba_users;

&#039;THEUSER&#039;&#124;&#124;USERNAME&#124;&#124;&#039;HASASTATUSOF&#039;&#124;&#124;ACCOUNT_STATUS
--------------------------------------------------------------------------------
The user MDSYS has a status of EXPIRED &amp; LOCKED
The user ORDSYS has a status of EXPIRED &amp; LOCKED
The user EXFSYS has a status of EXPIRED &amp; LOCKED
The user DMSYS has a status of EXPIRED &amp; LOCKED
The user DBSNMP has a status of OPEN
The user SCOTT has a status of OPEN&lt;/code&gt;

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Twingle,</p>
<p>Sorry for the delayed response.</p>
<p>You can actually select all sorts of things from any table.  Try this:</p>
<p><code>select 4+3, sysdate, 'some text' from user_tables;</code></p>
<p>The values will be repeated for every record in user_tables.  Basically these values aren&#8217;t selected from the table, but are rather provided as constant values, independent of the table contents.</p>
<p>It&#8217;s a bit tricky, but this functionality allows us to format the output like in the following (which also uses the double-pipe concatenate operator):</p>
<p><code>select 'The user ' || username || ' has a status of ' || account_status<br />
from dba_users;</p>
<p>'THEUSER'||USERNAME||'HASASTATUSOF'||ACCOUNT_STATUS<br />
--------------------------------------------------------------------------------<br />
The user MDSYS has a status of EXPIRED &#038; LOCKED<br />
The user ORDSYS has a status of EXPIRED &#038; LOCKED<br />
The user EXFSYS has a status of EXPIRED &#038; LOCKED<br />
The user DMSYS has a status of EXPIRED &#038; LOCKED<br />
The user DBSNMP has a status of OPEN<br />
The user SCOTT has a status of OPEN</code></p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twingle</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-148512</link>
		<dc:creator>Twingle</dc:creator>
		<pubDate>Tue, 10 Apr 2007 06:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-148512</guid>
		<description>Duel table is having a column &quot;DUMMY&quot; and its of type VARCHAR2(1).How it can return sysdate,which always have size greater than VARCHAR2(1)? Anybody having an idea about this?...</description>
		<content:encoded><![CDATA[<p>Duel table is having a column &#8220;DUMMY&#8221; and its of type VARCHAR2(1).How it can return sysdate,which always have size greater than VARCHAR2(1)? Anybody having an idea about this?&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jugar maquina tragamonedas gratis apuestas de casino en lnea</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-25909</link>
		<dc:creator>jugar maquina tragamonedas gratis apuestas de casino en lnea</dc:creator>
		<pubDate>Sat, 06 Jan 2007 10:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-25909</guid>
		<description>I see we share a common interest! Excellent job on the website!</description>
		<content:encoded><![CDATA[<p>I see we share a common interest! Excellent job on the website!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hazbjxzkvy</title>
		<link>http://www.lifeaftercoffee.com/2006/08/16/dual/comment-page-1/#comment-5612</link>
		<dc:creator>hazbjxzkvy</dc:creator>
		<pubDate>Tue, 03 Oct 2006 14:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/08/16/dual/#comment-5612</guid>
		<description>&lt;strong&gt;lmsyhmuda...&lt;/strong&gt;

oslfenrksde uhftenctby ymgyhascvo urmyumvgia ...</description>
		<content:encoded><![CDATA[<p><strong>lmsyhmuda&#8230;</strong></p>
<p>oslfenrksde uhftenctby ymgyhascvo urmyumvgia &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

