<?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 Question and Answer Site</title>
	<atom:link href="http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/</link>
	<description>because I don't believe in life before coffee...</description>
	<lastBuildDate>Wed, 28 Oct 2009 06:44:36 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Srinivas</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-212431</link>
		<dc:creator>Srinivas</dc:creator>
		<pubDate>Wed, 13 Jun 2007 10:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-212431</guid>
		<description>Dear John,

Run the following commands at the SQL prompt:

Break on c1
select * from temp order by c1;

Hope it helps.
Rgds,
Srin</description>
		<content:encoded><![CDATA[<p>Dear John,</p>
<p>Run the following commands at the SQL prompt:</p>
<p>Break on c1<br />
select * from temp order by c1;</p>
<p>Hope it helps.<br />
Rgds,<br />
Srin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-142848</link>
		<dc:creator>john</dc:creator>
		<pubDate>Thu, 05 Apr 2007 05:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-142848</guid>
		<description>i have table
c1 c2
———-
1 a
2 b
1 c
1 d
2 e

i want a query forthis table which will dispaly it as

c1 c2
————
1  a
-  c
-  d
2  b
-  e 

- means blank space</description>
		<content:encoded><![CDATA[<p>i have table<br />
c1 c2<br />
———-<br />
1 a<br />
2 b<br />
1 c<br />
1 d<br />
2 e</p>
<p>i want a query forthis table which will dispaly it as</p>
<p>c1 c2<br />
————<br />
1  a<br />
-  c<br />
-  d<br />
2  b<br />
-  e </p>
<p>- means blank space</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sushil</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-25616</link>
		<dc:creator>sushil</dc:creator>
		<pubDate>Fri, 05 Jan 2007 08:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-25616</guid>
		<description>I hv migrate forms 6i into 10 and it gives the error vbx.set_property .
what is alternate .</description>
		<content:encoded><![CDATA[<p>I hv migrate forms 6i into 10 and it gives the error vbx.set_property .<br />
what is alternate .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keekys</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-17427</link>
		<dc:creator>keekys</dc:creator>
		<pubDate>Fri, 15 Dec 2006 04:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-17427</guid>
		<description>Hi,

Here is the actual query.

SELECT contract_num_ng,STATE_PERFORM, CITY_PERFORM, COUNTRY_PERFORM,order_num_ng,mod_num_ng,PIID,referenced_PIID,contract_status,
contractor_name,component_code,office_code,date_signed,contact_title,dollars_obligated,
contractor_street,contractor_city,contractor_state,contractor_country,contractor_zip
FROM contract_actions_dw
WHERE date_signed BETWEEN &#039;01-OCT-2004&#039; AND &#039;30-SEP-2006&#039;
AND contract_status=&#039;A&#039;
AND contract_num_ng LIKE &#039;HHS%&#039;
AND city_perform IN(
    SELECT c.city_code,s.state_code 
    FROM CITY_CODES c,state_codes s
    WHERE c.city_name IN(&#039;FAIRBANKS&#039;,&#039;NORTHPOLE&#039;,&#039;ANCHORAGE&#039;,&#039;GALENA&#039;,&#039;MONTGOMERY&#039;,&#039;TUSCALOOSA&#039;,&#039;TUSKEGEE&#039;,&#039;HUNTSVILLE&#039;,&#039;MOBILE&#039;,&#039;FAYETTEVILLE&#039;,&#039;HOTSPRINGS&#039;,&#039;JONESBORO&#039;,&#039;ELDORADO&#039;,&#039;TUCSON&#039;,&#039;MESA&#039;,&#039;BARSTOW&#039;,&#039;MARINA&#039;,&#039;SEASIDE&#039;,&#039;DEL REY OAKS&#039;,&#039;YUBA CITY&#039;,&#039;NORCO&#039;,&#039;CONCORD&#039;,&#039;SUNNYVALE&#039;,
&#039;RIVERBANK&#039;,&#039;PORT HUENEME&#039;,&#039;OXNARD&#039;,&#039;RIDGECREST&#039;,&#039;CORONADO&#039;,&#039;SAN DIEGO&#039;,&#039;PASADENA&#039;,&#039;LONG BEACH&#039;,&#039;MOUNTAIN VIEW&#039;,&#039;SAN JOSE&#039;,&#039;COLORADO SPRINGS&#039;,&#039;DENVER&#039;,&#039;MIDDLETOWN&#039;,&#039;WATERBURY&#039;,
&#039;MILFORD&#039;,&#039;FAIRFIELD&#039;,&#039;WASHINGTON&#039;,&#039;WILMINGTON&#039;,&#039;MILTON&#039;,&#039;PENSACOLA&#039;,&#039;SPRINGFIELD&#039;,&#039;VALPARISO&#039;,&#039;JACKSONVILLE&#039;,&#039;CRAWFORDVILLE&#039;,&#039;KEY WEST&#039;,&#039;FORT WALTON BEACH&#039;,
&#039;ST PETERSBURG&#039;,&#039;AUGUSTA&#039;,&#039;WARNER ROBBINS&#039;,&#039;ALBANY&#039;,&#039;KINGSLAND&#039;,&#039;HINESVILLE&#039;,&#039;FOREST PARK&#039;,&#039;ATLANTA&#039;,&#039;MARIETTA&#039;,&#039;ATHENS&#039;,&#039;COLUMBUS&#039;,&#039;ROME&#039;,&#039;CEDAR RAPIDS&#039;,&#039;MIDDLETOWN&#039;,
&#039;DUBUQUE&#039;,&#039;MOUNTAIN HOME&#039;,&#039;SHILOH&#039;,&#039;ROCK ISLAND&#039;,&#039;CENTRALIA&#039;,&#039;FAIRFIELD&#039;,&#039;FOREST PARK&#039;,
&#039;MARION&#039;,&#039;WAUKEGAN&#039;,&#039;MANHATTAN&#039;,&#039;PARSONS&#039;,&#039;ELIZABETHTOWN&#039;,&#039;PADUCAH&#039;,&#039;LOUISVILLE&#039;,&#039;NEW ORLEANS&#039;,&#039;BOSSIER CITY&#039;,&#039;BATON ROUGE&#039;,&#039;LINCOLN&#039;,&#039;SPRINGFIELD&#039;,
&#039;CHICOPEE&#039;,&#039;HUGHESVILLE&#039;,&#039;FORT MEADE&#039;,&#039;BETHESDA&#039;,&#039;ABERDEEN&#039;,&#039;ADELPHI&#039;,&#039;KITTERY&#039;,&#039;TOWN OF BRUNSWICK&#039;,&#039;TOPSHAM&#039;,&#039;CHESTERFIELD TOWNSHIP&#039;,&#039;BATTLECREEK&#039;,&#039;CAMBRIDGE&#039;,&#039;FARIBAULT&#039;,&#039;HERMANTOWN&#039;,&#039;KANSAS CITY&#039;,&#039;CAPE GIRARDEAU&#039;,&#039;MERIDIAN&#039;,&#039;PASCAGOULA&#039;,&#039;HELENA&#039;,&#039;MISSOULA&#039;,&#039;HAVELOCK&#039;,&#039;FAYETTEVILLE&#039;,&#039;ALBEMARLE&#039;,&#039;WILMINGTON&#039;,&#039;ASHEVILLE&#039;,&#039;GRAND FORKS&#039;,&#039;LINCOLN&#039;,&#039;PORTSMOUTH&#039;,&#039;EATONTOWN&#039;,&#039;EDISON&#039;,&#039;EWING&#039;,&#039;PENNSAUKEN&#039;,&#039;CLOVIS&#039;,&#039;UNIONDALE&#039;,&#039;AMITYVILLE&#039;,&#039;NEW YORK CITY&#039;)
            AND s.state_code IN     (&#039;GA&#039;,&#039;IA&#039;,&#039;ID&#039;,&#039;IL&#039;,&#039;IN&#039;,&#039;KS&#039;,&#039;KY&#039;,&#039;LA&#039;,&#039;MA&#039;,&#039;MD&#039;,&#039;ME&#039;,
&#039;MI&#039;,&#039;MN&#039;,&#039;MO&#039;,&#039;MS&#039;,&#039;MT&#039;,&#039;NC&#039;,&#039;ND&#039;,&#039;NE&#039;,&#039;NH&#039;,&#039;NJ&#039;,&#039;NM&#039;,
&#039;NY&#039;,&#039;OH&#039;,&#039;OK&#039;,&#039;OR&#039;,&#039;PA&#039;,&#039;PR&#039;,&#039;RI&#039;,&#039;SC&#039;,&#039;SD&#039;,&#039;TX&#039;,&#039;VA&#039;,&#039;VT&#039;,&#039;WA&#039;,&#039;WI&#039;,&#039;WV&#039;)
AND c.state_num=s.state_num
GROUP BY c.city_code,s.state_code


Now the problem is I have a list of companies which exists only in one particular city in a particular state. But my query gives multiple columns for a city matching with many states. But I want only the state and city where the company exists. The company info does not exist in any table in dbase. Just by matching the city and state i have to select the compnany info. Pls advice.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Here is the actual query.</p>
<p>SELECT contract_num_ng,STATE_PERFORM, CITY_PERFORM, COUNTRY_PERFORM,order_num_ng,mod_num_ng,PIID,referenced_PIID,contract_status,<br />
contractor_name,component_code,office_code,date_signed,contact_title,dollars_obligated,<br />
contractor_street,contractor_city,contractor_state,contractor_country,contractor_zip<br />
FROM contract_actions_dw<br />
WHERE date_signed BETWEEN &#8216;01-OCT-2004&#8242; AND &#8216;30-SEP-2006&#8242;<br />
AND contract_status=&#8217;A&#8217;<br />
AND contract_num_ng LIKE &#8216;HHS%&#8217;<br />
AND city_perform IN(<br />
    SELECT c.city_code,s.state_code<br />
    FROM CITY_CODES c,state_codes s<br />
    WHERE c.city_name IN(&#8217;FAIRBANKS&#8217;,'NORTHPOLE&#8217;,'ANCHORAGE&#8217;,'GALENA&#8217;,'MONTGOMERY&#8217;,'TUSCALOOSA&#8217;,'TUSKEGEE&#8217;,'HUNTSVILLE&#8217;,'MOBILE&#8217;,'FAYETTEVILLE&#8217;,'HOTSPRINGS&#8217;,'JONESBORO&#8217;,'ELDORADO&#8217;,'TUCSON&#8217;,'MESA&#8217;,'BARSTOW&#8217;,'MARINA&#8217;,'SEASIDE&#8217;,'DEL REY OAKS&#8217;,'YUBA CITY&#8217;,'NORCO&#8217;,'CONCORD&#8217;,'SUNNYVALE&#8217;,<br />
&#8216;RIVERBANK&#8217;,'PORT HUENEME&#8217;,'OXNARD&#8217;,'RIDGECREST&#8217;,'CORONADO&#8217;,'SAN DIEGO&#8217;,'PASADENA&#8217;,'LONG BEACH&#8217;,'MOUNTAIN VIEW&#8217;,'SAN JOSE&#8217;,'COLORADO SPRINGS&#8217;,'DENVER&#8217;,'MIDDLETOWN&#8217;,'WATERBURY&#8217;,<br />
&#8216;MILFORD&#8217;,'FAIRFIELD&#8217;,'WASHINGTON&#8217;,'WILMINGTON&#8217;,'MILTON&#8217;,'PENSACOLA&#8217;,'SPRINGFIELD&#8217;,'VALPARISO&#8217;,'JACKSONVILLE&#8217;,'CRAWFORDVILLE&#8217;,'KEY WEST&#8217;,'FORT WALTON BEACH&#8217;,<br />
&#8216;ST PETERSBURG&#8217;,'AUGUSTA&#8217;,'WARNER ROBBINS&#8217;,'ALBANY&#8217;,'KINGSLAND&#8217;,'HINESVILLE&#8217;,'FOREST PARK&#8217;,'ATLANTA&#8217;,'MARIETTA&#8217;,'ATHENS&#8217;,'COLUMBUS&#8217;,'ROME&#8217;,'CEDAR RAPIDS&#8217;,'MIDDLETOWN&#8217;,<br />
&#8216;DUBUQUE&#8217;,'MOUNTAIN HOME&#8217;,'SHILOH&#8217;,'ROCK ISLAND&#8217;,'CENTRALIA&#8217;,'FAIRFIELD&#8217;,'FOREST PARK&#8217;,<br />
&#8216;MARION&#8217;,'WAUKEGAN&#8217;,'MANHATTAN&#8217;,'PARSONS&#8217;,'ELIZABETHTOWN&#8217;,'PADUCAH&#8217;,'LOUISVILLE&#8217;,'NEW ORLEANS&#8217;,'BOSSIER CITY&#8217;,'BATON ROUGE&#8217;,'LINCOLN&#8217;,'SPRINGFIELD&#8217;,<br />
&#8216;CHICOPEE&#8217;,'HUGHESVILLE&#8217;,'FORT MEADE&#8217;,'BETHESDA&#8217;,'ABERDEEN&#8217;,'ADELPHI&#8217;,'KITTERY&#8217;,'TOWN OF BRUNSWICK&#8217;,'TOPSHAM&#8217;,'CHESTERFIELD TOWNSHIP&#8217;,'BATTLECREEK&#8217;,'CAMBRIDGE&#8217;,'FARIBAULT&#8217;,'HERMANTOWN&#8217;,'KANSAS CITY&#8217;,'CAPE GIRARDEAU&#8217;,'MERIDIAN&#8217;,'PASCAGOULA&#8217;,'HELENA&#8217;,'MISSOULA&#8217;,'HAVELOCK&#8217;,'FAYETTEVILLE&#8217;,'ALBEMARLE&#8217;,'WILMINGTON&#8217;,'ASHEVILLE&#8217;,'GRAND FORKS&#8217;,'LINCOLN&#8217;,'PORTSMOUTH&#8217;,'EATONTOWN&#8217;,'EDISON&#8217;,'EWING&#8217;,'PENNSAUKEN&#8217;,'CLOVIS&#8217;,'UNIONDALE&#8217;,'AMITYVILLE&#8217;,'NEW YORK CITY&#8217;)<br />
            AND s.state_code IN     (&#8217;GA&#8217;,'IA&#8217;,'ID&#8217;,'IL&#8217;,'IN&#8217;,'KS&#8217;,'KY&#8217;,'LA&#8217;,'MA&#8217;,'MD&#8217;,'ME&#8217;,<br />
&#8216;MI&#8217;,'MN&#8217;,'MO&#8217;,'MS&#8217;,'MT&#8217;,'NC&#8217;,'ND&#8217;,'NE&#8217;,'NH&#8217;,'NJ&#8217;,'NM&#8217;,<br />
&#8216;NY&#8217;,'OH&#8217;,'OK&#8217;,'OR&#8217;,'PA&#8217;,'PR&#8217;,'RI&#8217;,'SC&#8217;,'SD&#8217;,'TX&#8217;,'VA&#8217;,'VT&#8217;,'WA&#8217;,'WI&#8217;,'WV&#8217;)<br />
AND c.state_num=s.state_num<br />
GROUP BY c.city_code,s.state_code</p>
<p>Now the problem is I have a list of companies which exists only in one particular city in a particular state. But my query gives multiple columns for a city matching with many states. But I want only the state and city where the company exists. The company info does not exist in any table in dbase. Just by matching the city and state i have to select the compnany info. Pls advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Emmons</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-6053</link>
		<dc:creator>Jon Emmons</dc:creator>
		<pubDate>Thu, 12 Oct 2006 22:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-6053</guid>
		<description>Pradeep,

I think you&#039;re looking for something like this:

http://www.dba-oracle.com/t_temporary_tables_sql.htm

Burleson describes it here as a technique for improving performance but from what I gather you want to do the same thing.

Hope this helps, and sorry for the slow response.</description>
		<content:encoded><![CDATA[<p>Pradeep,</p>
<p>I think you&#8217;re looking for something like this:</p>
<p><a href="http://www.dba-oracle.com/t_temporary_tables_sql.htm" rel="nofollow">http://www.dba-oracle.com/t_temporary_tables_sql.htm</a></p>
<p>Burleson describes it here as a technique for improving performance but from what I gather you want to do the same thing.</p>
<p>Hope this helps, and sorry for the slow response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-5792</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Sun, 08 Oct 2006 07:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-5792</guid>
		<description>I have to select one particular column from a view 
it is throwing error for
select registration_id from view_registration;
how can i do that</description>
		<content:encoded><![CDATA[<p>I have to select one particular column from a view<br />
it is throwing error for<br />
select registration_id from view_registration;<br />
how can i do that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-5726</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Fri, 06 Oct 2006 12:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-5726</guid>
		<description>I want to store some temporary data in sql
how to create a temporary table in sql 
so that i do condition checks pull out values and store there
select then
i am not able to use views here</description>
		<content:encoded><![CDATA[<p>I want to store some temporary data in sql<br />
how to create a temporary table in sql<br />
so that i do condition checks pull out values and store there<br />
select then<br />
i am not able to use views here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-5199</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 14 Sep 2006 00:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-5199</guid>
		<description>Dharmendra,

I think this is what you&#039;re looking for.  BE CAREFUL and never try this on your production system until you have tried it on a test system.  The directions below should be considered just a broad guideline and do not cover moving files to another location.

If you need to rename a database the best thing to do is to run the sql command &lt;code&gt;alter database backup controlfile to trace;&lt;/code&gt; and grab the resulting sql script from the udump directory.

Grab the SQL from the trace file for the RESETLOGS case and change the line that says
&lt;code&gt;CREATE CONTROLFILE REUSE DATABASE &quot;&lt;em&gt;OLDNAME&lt;/em&gt;&quot; RESETLOGS  ARCHIVELOG&lt;/code&gt;
to read
&lt;code&gt;CREATE CONTROLFILE SET DATABASE &quot;&lt;em&gt;NEWNAME&lt;/em&gt;&quot; RESETLOGS  ARCHIVELOG&lt;/code&gt;

Now shut down the database and run your SQL script to startup and rename the database.  Finally run the following SQL to change the global name of the database.

&lt;code&gt;ALTER DATABASE RENAME GLOBAL_NAME TO &lt;em&gt;NEWNAME&lt;/em&gt;;&lt;/code&gt;

Don&#039;t forget to update your TNSNames, listener.ora, oratab and any other configuration files on your system.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Dharmendra,</p>
<p>I think this is what you&#8217;re looking for.  BE CAREFUL and never try this on your production system until you have tried it on a test system.  The directions below should be considered just a broad guideline and do not cover moving files to another location.</p>
<p>If you need to rename a database the best thing to do is to run the sql command <code>alter database backup controlfile to trace;</code> and grab the resulting sql script from the udump directory.</p>
<p>Grab the SQL from the trace file for the RESETLOGS case and change the line that says<br />
<code>CREATE CONTROLFILE REUSE DATABASE "<em>OLDNAME</em>" RESETLOGS  ARCHIVELOG</code><br />
to read<br />
<code>CREATE CONTROLFILE SET DATABASE "<em>NEWNAME</em>" RESETLOGS  ARCHIVELOG</code></p>
<p>Now shut down the database and run your SQL script to startup and rename the database.  Finally run the following SQL to change the global name of the database.</p>
<p><code>ALTER DATABASE RENAME GLOBAL_NAME TO <em>NEWNAME</em>;</code></p>
<p>Don&#8217;t forget to update your TNSNames, listener.ora, oratab and any other configuration files on your system.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dharmendra</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-5183</link>
		<dc:creator>dharmendra</dc:creator>
		<pubDate>Wed, 13 Sep 2006 17:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-5183</guid>
		<description>how to rename a database name 
ex.current name is ask and modify by scroll</description>
		<content:encoded><![CDATA[<p>how to rename a database name<br />
ex.current name is ask and modify by scroll</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dharmendra</title>
		<link>http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/comment-page-1/#comment-5182</link>
		<dc:creator>dharmendra</dc:creator>
		<pubDate>Wed, 13 Sep 2006 17:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.lifeaftercoffee.com/2006/01/19/oracle-question-and-answer-site/#comment-5182</guid>
		<description>how to rename a database name</description>
		<content:encoded><![CDATA[<p>how to rename a database name</p>
]]></content:encoded>
	</item>
</channel>
</rss>
