<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8373941034124210772</id><updated>2024-10-08T18:41:22.425-07:00</updated><title type='text'>Informatica</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-3071934367403189039</id><published>2013-10-16T20:05:00.000-07:00</published><updated>2013-10-16T20:05:21.170-07:00</updated><title type='text'>FTP COMMANDS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;&lt;br /&gt;If there is any requirement for transferring files from UNIX to Window shared path and vice versa through FTP,&lt;br /&gt;Please use the below commands for achieving this&lt;br /&gt;&lt;br /&gt;UNIX to Windows Shared path:&lt;br /&gt;&lt;br /&gt;cd &amp;lt;Local UNIX directory where Input files are available&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;ftp -n &amp;lt;&amp;lt;EOF&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open &amp;lt;FTP Server Name&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user &amp;lt;FTP User Name&amp;gt; &amp;lt;FTP Password&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd &amp;lt;Windows Shared path where you want to copy the files&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mput &amp;lt;File Name*&amp;gt;&lt;br /&gt;EOF&lt;br /&gt;&lt;br /&gt;Windows Shared path to UNIX:&lt;br /&gt;&lt;br /&gt;cd &amp;lt; Local UNIX directory where you want to copy the files &amp;gt;&lt;br /&gt;ftp -n &amp;lt;&amp;lt;EOF&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open &amp;lt;FTP Server Name&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user &amp;lt;FTP User Name&amp;gt; &amp;lt;FTP Password&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd&amp;nbsp; &amp;lt;Windows Shared path where the Input files are available&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mget &amp;lt;File Name*&amp;gt;&lt;br /&gt;EOF&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Moorthy. G&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/3071934367403189039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2013/10/ftp-commands_16.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/3071934367403189039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/3071934367403189039'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2013/10/ftp-commands_16.html' title='FTP COMMANDS'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-8413208938528124741</id><published>2013-02-05T09:27:00.001-08:00</published><updated>2013-02-05T09:27:03.823-08:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;Load Data Oracle to Ms Access&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&amp;nbsp;&lt;/span&gt;MS ACCESS:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
==========&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1. Open a new Microsoft Access File. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2. Go for option File--&amp;gt; Get External Data --&amp;gt;Import &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
3. It opens one dialog box. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
4. Select Files of type as &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&quot;ODBC databases&quot; &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
5. Select the &lt;b&gt;Machine Data Source&lt;/b&gt;. &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
6. Select the ODBC Driver(DSN) which is capable of access that required database data.
&lt;span style=&quot;color: #1f497d;&quot;&gt;(Then double click on the ODBC)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
7. Enter the Password for that connection. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
It loads all the data from Oracle to Access. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Step1:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;DSN CREATION:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Select Start»Settings»Control Panel»Administrative 
Tools»Data Sources (ODBC) in Windows 2000/XP or Start»Settings»Control 
Panel»Data Sources (ODBC) in Windows 9x/Me.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Select either the User DSN or System DSN tab.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Select Add»&lt;b&gt;Microsoft Access Driver (*.mdb)»&lt;/b&gt;Finish.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Give it a Data Source Name and a good description.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Choose the Select button in the Database field.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Navigate to the location of your Access database and select OK.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Select OK on the ODBC Microsoft Access Setup window.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
You should now see your DSN in the User/System Data Source window.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Informaitca&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
========&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Create a relation connection using odbc driver in Worklflow Manager.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Connection Name: &lt;b&gt;ODBC connection&lt;/b&gt; &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
User Name: &lt;b&gt;pmnulluser&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Password: &lt;b&gt;pmnullpasswd&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Connection String: &lt;b&gt;NAME of ODBC connecti&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/8413208938528124741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2013/02/load-data-oracle-to-ms-access-ms-access.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8413208938528124741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8413208938528124741'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2013/02/load-data-oracle-to-ms-access-ms-access.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-8212099153280639973</id><published>2012-12-17T04:00:00.002-08:00</published><updated>2012-12-17T04:00:33.386-08:00</updated><title type='text'>How to make reusable transformation into nonreusable transformation?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Reusable transformation into nonreusable transformation&lt;br /&gt;
=====================================&lt;br /&gt;1) Drag the reusable transformation from Repository Navigator into Mapping Designer&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;by pressing the left button of the mouse&lt;br /&gt;
2 ) Then press the Ctrl key before releasing the left button of mouse.&lt;br /&gt;
3) Release the left button of mouse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To Find a CHEK CONSTRATINT in DB2&lt;br /&gt;================================&lt;br /&gt;SELECT&lt;br /&gt;TBNAME,&lt;br /&gt;TBOWNER,&lt;br /&gt;CHECKCONDITION&lt;br /&gt;FROM SYSIBM.SYSCHECKS&lt;br /&gt;WHERE&lt;br /&gt;TBNAME=&#39;TABLE_NAME&#39;&lt;br /&gt;
AND TBOWNER=&#39;SCHEMA&#39;&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;Moorthy. G&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/8212099153280639973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/12/how-to-make-reusable-transformation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8212099153280639973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8212099153280639973'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/12/how-to-make-reusable-transformation.html' title='How to make reusable transformation into nonreusable transformation?'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-8623047703024694649</id><published>2012-11-26T03:26:00.000-08:00</published><updated>2012-11-26T03:26:24.357-08:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. How To Find Primary Key and Foreign Key Relationship in a table in DB2?&lt;br /&gt;
Ans:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;SELECT A.CREATOR, A.TBNAME, A.RELNAME, B.COLNAME, B.COLSEQ,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.REFTBCREATOR, A.REFTBNAME&lt;br /&gt;&amp;nbsp; FROM SYSIBM.SYSRELS A, SYSIBM.SYSFOREIGNKEYS B&lt;br /&gt;&amp;nbsp; WHERE A.CREATOR = &#39;SOURCE&#39;&lt;br /&gt;&amp;nbsp; AND B.CREATOR = &#39;SOURCE&#39;&lt;br /&gt;&amp;nbsp; AND A.TBNAME = &#39;TABLE_NAME&#39;&lt;br /&gt;--&amp;nbsp; AND B.TBNAME = &#39;PROJ&#39;&lt;br /&gt;&amp;nbsp; AND A.RELNAME = B.RELNAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER BY A.RELNAME, B.COLSEQ&lt;br /&gt;
&lt;br /&gt;2. How to find index in a Table in DB2?&lt;br /&gt;
Ans:&lt;br /&gt;
SELECT DISTINCT&lt;br /&gt;A.TBNAME,&lt;br /&gt;B.COLNAME,&lt;br /&gt;A.INDEXSPACE,&lt;br /&gt;A.DBNAME,&lt;br /&gt;A.CLUSTERING,&lt;br /&gt;A.CLUSTERED&lt;br /&gt;FROM SYSIBM.SYSINDEXES A, SYSIBM.SYSKEYS B &lt;br /&gt;WHERE&lt;br /&gt;A.CREATOR = &#39;SOURCE&#39;&lt;br /&gt;AND TBNAME = &#39;TABLE_NAME&#39;&lt;br /&gt;AND A.NAME =B.IXNAME&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
Moorthy. G&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/8623047703024694649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/11/1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8623047703024694649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8623047703024694649'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/11/1.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-782027741657281615</id><published>2012-10-27T21:05:00.001-07:00</published><updated>2012-10-27T21:05:21.415-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
STORE PROCEDURES:&lt;br /&gt;
==================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
COPY TABLE&lt;br /&gt;
==========&lt;br /&gt;
&lt;br /&gt;
create or replace procedure table_copy(&lt;br /&gt;
&amp;nbsp; GM_tab_from varchar2,&lt;br /&gt;
&amp;nbsp; GM_tab_to &amp;nbsp; varchar2)&lt;br /&gt;
Is&lt;br /&gt;
&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; execute immediate &#39;insert into &#39;||GM_tab_to||&#39; (select * from &#39;||GM_tab_from||&#39;)&#39;;&lt;br /&gt;
&lt;br /&gt;
End;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
CREATE_INDEX:&lt;br /&gt;
=============&lt;br /&gt;
&lt;br /&gt;
Create or replace procedure CREATE_INDEX&lt;br /&gt;
&lt;br /&gt;
As&lt;br /&gt;
&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
Execute immediate &#39;create index unconn_dept on SP_UNCONN_EXAMPLE(DEPTNO)&#39;;&lt;br /&gt;
&lt;br /&gt;
End;&lt;br /&gt;
&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
DROP_INDEX:&lt;br /&gt;
===========&lt;br /&gt;
Create or replace procedure DROP_INDEX&lt;br /&gt;
&lt;br /&gt;
As&lt;br /&gt;
&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
Execute immediate &#39;drop index unconn_dept&#39;;&lt;br /&gt;
&lt;br /&gt;
End;&lt;br /&gt;
&lt;br /&gt;
/&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/782027741657281615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/10/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/782027741657281615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/782027741657281615'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/10/blog-post.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-1511473201138626022</id><published>2012-07-10T10:46:00.000-07:00</published><updated>2012-07-10T10:46:08.065-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Informatica workflow status &amp;nbsp;SQL Query&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
SELECT WORKFLOW_NAME,&lt;br /&gt;
SERVER_NAME,&lt;br /&gt;
RUN_ERR_CODE,&lt;br /&gt;
RUN_ERR_MSG,&lt;br /&gt;
SUBJECT_AREA,&lt;br /&gt;
decode (RUN_STATUS_CODE,1 , &#39;Succeeded&#39;,&lt;br /&gt;
2,&#39;Disabled&#39;,&lt;br /&gt;
3,&#39;Failed&#39;,&lt;br /&gt;
4,&#39;Stopped&#39;,&lt;br /&gt;
5,&#39;Aborted&#39;,&lt;br /&gt;
6,&#39;Running&#39;,&lt;br /&gt;
15,&#39;Terminated&#39;) &amp;nbsp;Status&lt;br /&gt;
from infa_metadata_schema.REP_WFLOW_RUN&lt;br /&gt;
where START_TIME&amp;gt;= sysdate-2 and END_TIME&amp;lt;=sysdate&lt;br /&gt;
order by SUBJECT_AREA,WORKFLOW_NAME,RUN_STATUS_CODE;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/1511473201138626022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/07/informatica-workflow-status-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/1511473201138626022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/1511473201138626022'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/07/informatica-workflow-status-query.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-5018823448172529118</id><published>2012-07-10T09:12:00.003-07:00</published><updated>2012-07-10T09:12:44.021-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;If file exists then send email with attachment ?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
if&lt;br /&gt;
&amp;nbsp;[[ -f $your_file ]]; then uuencode $your_file $your_file|mailx -s &quot;$your_file exists...&quot; your_email_address&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
Moorthy. G&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/5018823448172529118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/07/if-file-exists-then-send-email-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/5018823448172529118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/5018823448172529118'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/07/if-file-exists-then-send-email-with.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-6959773805122292240</id><published>2012-07-02T04:53:00.001-07:00</published><updated>2012-07-02T04:53:35.364-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 21.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Unconnected Lookup Transformation -- Returning Multiple Values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 21.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;gt; We can achieve Multiple values from Unconnected Lookup-Tr.
We just need to override the default lookup sql query, there in one of the
return port we can concatnate the values using ||.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;gt; The concatnated multiple values will be returned from
lookup to calling expression. In the expression we can extract / separate the
concatnated string value (multiple values concatnated in lookup) and can pass
to the target…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;SELECT DEPT.DNAME||&#39; &#39;||DEPT.LOC as OUT_MUL_Values, DEPT.DNAME
as DNAME, DEPT.LOC as LOC, DEPT.DEPTNO as DEPTNO FROM DEPT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;gt; Before overrideing we should create one return port in the
lookup-tr (here OUT_MUL_Values )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;gt; Devide that OUT_MUL_Values in an expression&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;(Variable) OUT_MUL_Values &amp;nbsp;:LKP.LKP_UNCONN(DEPTNO)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;O_DNAME =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
REG_EXTRACT(OUT_MUL_Values,&#39;(\w+)\s+(\w+)&#39;,1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;O_LOC&amp;nbsp; = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
REG_EXTRACT(OUT_MUL_Values,&#39;(\w+)\s+(\w+)&#39;,2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;gt; Connect to target...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b&gt;Best Regards,&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Georgia&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.5pt; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b&gt;Moorthy. G&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/6959773805122292240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/07/unconnected-lookup-transformation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6959773805122292240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6959773805122292240'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/07/unconnected-lookup-transformation.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-4210513313636887394</id><published>2012-06-24T18:52:00.001-07:00</published><updated>2012-06-24T18:52:05.862-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;SQL QUESTIONS AND ANSWERS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
1. Select duplicate value from the table?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;select no, name from tt group by no, name having count(no) &amp;gt; 1;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
2. Delete duplicate record from the table.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;delete from tt a where rowid &amp;lt;&amp;gt; (select max(rowid) from tt b where a.no=b.no);&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Delete duplicate record from the table which is recent&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;delete from tt a where rowid &amp;lt;&amp;gt; (select min(rowid) from tt b where a.no=b.no);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
4. Delete duplicate record from the table which is old fear.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;delete from tt a where rowid &amp;lt;&amp;gt; (select max(rowid) from tt b where a.no=b.no);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
5. select top 5 salary&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT ENAME, SAL FROM ( SELECT ENAME, SAL FROM EMP ORDER BY SAL DESC) WHERE ROWNUM &amp;lt;=5;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
6. select senior 5 people&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT ENAME, HIREDATE FROM EMP WHERE ROWNUM &amp;lt;=5&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
7. select top 2 salary for each dept&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT ENAME, SAL, DEPTNO FROM( SELECT ROW_NUMBER() OVER(PARTITION BY DEPTNO ORDER BY SAL DESC) RN, ENAME, SAL, DEPTNO FROM EMP) WHERE RN &amp;lt;=2;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;8. select top 2 salary using rank()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT ENAME, SAL FROM(SELECT RANK() OVER(ORDER BY SAL DESC) RN, ENAME, SAL FROM EMP) WHERE RN&amp;lt;=2;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
9. What is rank and dense rank?&lt;br /&gt;
rank()&lt;br /&gt;
&lt;br /&gt;
1 100&lt;br /&gt;
2 50&lt;br /&gt;
2 50&lt;br /&gt;
&lt;b&gt;4 30&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
DENSE_rank()&lt;br /&gt;
&lt;br /&gt;
1 100&lt;br /&gt;
2 50&lt;br /&gt;
2 50&lt;br /&gt;
&lt;b&gt;3 30&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
10. how many employes are working in each deptment table&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT D.DEPTNO, COUNT(E.EMPNO) &quot;Number Of Employees&quot; FROM EMP E, DEPT D WHERE E.DEPTNO=D.DEPTNO GROUP BY D.DEPTNO;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
12. select name, manager_Name for each employee.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;SELECT E.ENAME, E1.ENAME FROM EMP E, EMP E1 WHERE E.MGR=E1.EMPNO;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;SELECT E.ENAME, E1.ENAME FROM EMP E LEFT OUTER JOIN EMP E1 ON &amp;nbsp; E.MGR=E1.EMPNO;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;13. How to convert column to column in oracle?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT *FROM (&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;SELECT NAME,&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;CASE PIVOT&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;WHEN 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;THEN CUST_VALUE_1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;WHEN 2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;THEN CUST_VALUE_2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;WHEN 3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;THEN CUST_VALUE_3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;END SALARY FROM TR1,(SELECT ROWNUM PIVOT FROM DUAL CONNECT BY LEVEL &amp;lt;=3))&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;ORDER BY NAME;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
14. Select First and Second Half Record:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;select *from emp where rownum &amp;lt;= (select count(*)/2 from emp) -------------- &amp;nbsp;First Half&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;select *from emp minus select *from emp where rownum &amp;lt;= (select count(*)/2 from emp) &amp;nbsp; --------------- Second Half&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/4210513313636887394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/06/sql-questions-and-answers-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/4210513313636887394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/4210513313636887394'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/06/sql-questions-and-answers-1.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-6178003153744676342</id><published>2012-06-09T06:43:00.002-07:00</published><updated>2012-06-09T06:43:28.854-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
How to create sequence number using trigger?&lt;br /&gt;
&lt;br /&gt;
create sequence SEQ_NAME start with 1;&lt;br /&gt;&lt;br /&gt;Sequence created.&lt;br /&gt;&lt;br /&gt;SQL&amp;gt; create or replace trigger TRIGG_NAME&lt;br /&gt;2 before insert on TABLE_NAME&lt;br /&gt;3 for each row&lt;br /&gt;4 begin&lt;br /&gt;5 select SEQ_NAME.nextval&lt;br /&gt;6 into :new.COLUMN&lt;br /&gt;7 from dual;&lt;br /&gt;8 end;&lt;br /&gt;9 /&lt;br /&gt;&lt;br /&gt;Trigger created.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Moorthy. G&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/6178003153744676342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/06/how-to-create-sequence-number-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6178003153744676342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6178003153744676342'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/06/how-to-create-sequence-number-using.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-5249765795327475999</id><published>2012-05-07T00:58:00.000-07:00</published><updated>2012-05-07T00:58:29.633-07:00</updated><title type='text'>How to load Workflow using PMCMD Command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#!/bin/ksh&lt;br /&gt;
DATE=$1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;# Reads the variables from the environment file.&lt;br /&gt;. ./.salesenv&lt;br /&gt;
&lt;br /&gt;
/stage_area/pm/script/RemoveDate.sh -d $DATE /stage_area/pm/SrcFiles/basdb A.TNB2.dat B.TNB2.dat C.TNB2.dat&lt;br /&gt;
errorcode=&quot;$?&quot;&lt;br /&gt;if [ $errorcode -ne 0 ]; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Couldn&#39;t load with date $DATE, Please chek the files!&quot;&lt;br /&gt;fi&lt;br /&gt;$PMDIR/pmcmd startworkflow -sv ${PMSERVICE} -d ${PMDOMAIN} -u ${PMUSER} -p ${PMLOSEN} -f ${PMFOLDER} -wait bLoadSaleDomainMan&lt;br /&gt;errorcode=&quot;$?&quot;&lt;br /&gt;if [ $errorcode -ne 0 ]; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Batch failed loading the file with date $ DATE&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 1&lt;br /&gt;fi&lt;br /&gt;
rm $LOADDIR/A.TNB2.dat&lt;br /&gt;rm $LOADDIR/B.TNB2.dat&lt;br /&gt;rm $LOADDIR/C.TNB2.dat&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/5249765795327475999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/05/how-to-load-workflow-using-pmcmd_07.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/5249765795327475999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/5249765795327475999'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2012/05/how-to-load-workflow-using-pmcmd_07.html' title='How to load Workflow using PMCMD Command'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-1560558001082752769</id><published>2011-12-05T23:58:00.000-08:00</published><updated>2011-12-05T23:58:37.351-08:00</updated><title type='text'>What is the use of &quot;plus sign&quot; in where clause?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Ex:&lt;br /&gt;
column = &#39;String_Value&#39;&lt;br /&gt;
column (+) = &#39;String_Value&#39;&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select d.deptno, d.dname, count(e.empno) cnt&lt;br /&gt;
&amp;nbsp; 2&amp;nbsp; from dept d, emp e&lt;br /&gt;
&amp;nbsp; 3&amp;nbsp; where e.deptno (+) = d.deptno&lt;br /&gt;
&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; and e.ename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &#39;SMITH&#39;&lt;br /&gt;
&amp;nbsp; 5&amp;nbsp; group by d.deptno, d.dname&lt;br /&gt;
&amp;nbsp; 6&amp;nbsp; order by d.deptno&lt;br /&gt;
&amp;nbsp; 7&amp;nbsp; /&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; DEPTNO DNAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CNT&lt;br /&gt;
---------- -------------- ----------&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 &amp;nbsp;RESEARCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;
&lt;br /&gt;
1 row selected.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select d.deptno, d.dname, count(e.empno) cnt&lt;br /&gt;
&amp;nbsp; 2&amp;nbsp; from dept d, emp e&lt;br /&gt;
&amp;nbsp; 3&amp;nbsp; where e.deptno (+) = d.deptno&lt;br /&gt;
&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; and e.ename&amp;nbsp; (+) = &#39;SMITH&#39;&lt;br /&gt;
&amp;nbsp; 5&amp;nbsp; group by d.deptno, d.dname&lt;br /&gt;
&amp;nbsp; 6&amp;nbsp; order by d.deptno&lt;br /&gt;
&amp;nbsp; 7&amp;nbsp; /&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; DEPTNO DNAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CNT&lt;br /&gt;
---------- -------------- ----------&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp; ACCOUNTING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp; RESEARCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp; SALES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp; OPERATIONS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;br /&gt;
&lt;br /&gt;
4 rows selected.&lt;br /&gt;
Best Regards,&lt;br /&gt;
Moorthy. G&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/1560558001082752769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/12/what-is-use-of-plus-sign-in-where.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/1560558001082752769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/1560558001082752769'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/12/what-is-use-of-plus-sign-in-where.html' title='What is the use of &quot;plus sign&quot; in where clause?'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-6868251443331179321</id><published>2011-11-26T23:56:00.000-08:00</published><updated>2011-11-26T23:56:35.334-08:00</updated><title type='text'>ORA-27101 SHARED MEMORY REALM DOES&#39;NT EXIST</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;When you get this error message -&amp;gt;&lt;br /&gt;
&lt;b&gt;ERROR:&lt;br /&gt;
ORA-01034: ORACLE not available&lt;br /&gt;
ORA-27101: shared memory realm does not exist&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
check that oracle service has been started -&lt;br /&gt;
For Windows machine go to run -&amp;gt; type services.msc -&amp;gt; start the respective oracle sevice .&lt;br /&gt;
Evan after this the same error comes then manually start the service in command prompt.&lt;br /&gt;
&lt;br /&gt;
For Windows machine go to run -&amp;gt; type cmd&lt;br /&gt;
&lt;br /&gt;
Type the following commands&lt;br /&gt;
C:\set oracle_sid = sidname&lt;br /&gt;
C:\sqlplus&lt;br /&gt;
SQL*Plus: Release 8.1.7.0.0 - Production on Mon Oct 19 14:58:50 2009&lt;br /&gt;
&lt;br /&gt;
(c) Copyright 2000 Oracle Corporation. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Enter user-name: sys/sys as sysdba&lt;br /&gt;
Connected to an idle instance.&lt;br /&gt;
SQL&amp;gt; startup&lt;br /&gt;
ORACLE instance started.&lt;br /&gt;
&lt;br /&gt;
Total System Global Area 237856796 bytes&lt;br /&gt;
Fixed Size 75804 bytes&lt;br /&gt;
Variable Size 80416768 bytes&lt;br /&gt;
Database Buffers 157286400 bytes&lt;br /&gt;
Redo Buffers 77824 bytes&lt;br /&gt;
Database mounted.&lt;br /&gt;
Database opened.&lt;br /&gt;
SQL&amp;gt; exit&lt;br /&gt;
Then you can start oracle. It will work.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
Moorthy. G &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/6868251443331179321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/11/ora-27101-shared-memory-realm-doesnt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6868251443331179321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6868251443331179321'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/11/ora-27101-shared-memory-realm-doesnt.html' title='ORA-27101 SHARED MEMORY REALM DOES&#39;NT EXIST'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-6059975463684630278</id><published>2011-11-09T23:46:00.000-08:00</published><updated>2011-11-09T23:46:17.464-08:00</updated><title type='text'>How to create a table and insert values using script?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;#! /bin/sh&lt;br /&gt;
ORACLE_VALUE=`sqlplus -s schema_name/pwd@server_name &amp;lt;&amp;lt; EOFSQL&lt;br /&gt;
set head off&lt;br /&gt;
CREATE TABLE TEST20(NO NUMBER NOT NULL, NAME VARCHAR2(20));&lt;br /&gt;
INSERT INTO test20 VALUES (10,&#39;A&#39;);&lt;br /&gt;
INSERT INTO test20 VALUES (20,&#39;B&#39;);&lt;br /&gt;
INSERT INTO test20 VALUES (30,&#39;C&#39;);&lt;br /&gt;
INSERT INTO test20 VALUES (40,&#39;D&#39;);&lt;br /&gt;
COMMIT;&lt;br /&gt;
exit;&lt;br /&gt;
EOFSQL`&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/6059975463684630278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/11/how-to-create-table-and-insert-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6059975463684630278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/6059975463684630278'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/11/how-to-create-table-and-insert-values.html' title='How to create a table and insert values using script?'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-3374673199686451759</id><published>2011-10-23T07:30:00.000-07:00</published><updated>2011-10-23T07:36:59.401-07:00</updated><title type='text'>Informatica Interview Questions And Answers_Part 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1. How to get UNIQUE Record?&lt;br /&gt;
&lt;br /&gt;
S-SQ-SRT-EXP-FLT OR RTR – TGT&lt;br /&gt;
&lt;br /&gt;
In Expression:&lt;br /&gt;
&lt;br /&gt;
flag = Decode(true,eid=pre_eid, &#39;Y&#39;,&#39;N&#39;)&lt;br /&gt;
&lt;br /&gt;
flag_out = flag&lt;br /&gt;
&lt;br /&gt;
pre_eid=eid&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. How to get sequence value using Expression?&lt;br /&gt;
&lt;br /&gt;
v_temp= v_temp+1&lt;br /&gt;
&lt;br /&gt;
o_seq=IIF(ISNULL(v_temp), 0, v_temp)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. How will restrict values in 0-9,&amp;nbsp; A-Z, a-z and special character. Only allowed these chars otherwise we will reject the records?&lt;br /&gt;
&lt;br /&gt;
Answer:&lt;br /&gt;
&lt;br /&gt;
Using RegMatch in Informatica to validate&lt;br /&gt;
&lt;br /&gt;
IIF(reg_match(in_Email,&#39;^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$&#39;),&#39;Valid&#39;,&#39;Invalid&#39;)&lt;br /&gt;
&lt;br /&gt;
4. What is diff between Decode and case? Give some Example?&lt;br /&gt;
&lt;br /&gt;
In case, you can use logic as &amp;gt;, &amp;lt;, &amp;lt;=,&amp;gt;= , whereas in&amp;nbsp; decode you can only use =.&lt;br /&gt;
&lt;br /&gt;
Example:1&lt;br /&gt;
&lt;br /&gt;
select&lt;br /&gt;
&lt;br /&gt;
case snum&lt;br /&gt;
&lt;br /&gt;
when snum &amp;gt; 10 then &#39;High&#39;&lt;br /&gt;
&lt;br /&gt;
when snum&amp;gt;5 then &#39;Low&#39;&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
from sales..&lt;br /&gt;
&lt;br /&gt;
Ex:2&lt;br /&gt;
&lt;br /&gt;
select decode(snum,10,&#39;high&#39;,5,&#39;low&#39;) from sales...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. What is the difference between bitmap and btree index?&lt;br /&gt;
&lt;br /&gt;
Bitmap index is used for repeating values.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Ex: Gender: male/female&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account status: Active/Inactive&lt;br /&gt;
&lt;br /&gt;
Btree index is used for unique values.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Ex: Emp_id.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/3374673199686451759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/informatica-interview-questions-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/3374673199686451759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/3374673199686451759'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/informatica-interview-questions-and.html' title='Informatica Interview Questions And Answers_Part 1'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-114738687799121855</id><published>2011-10-13T06:51:00.000-07:00</published><updated>2011-10-13T06:51:35.674-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Renaming a file and append it with a date&lt;/u&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;$&amp;nbsp; touch temp&lt;/span&gt;&lt;br /&gt;
$ mv temp temp_`date +&quot;%Y%m%d&quot;`&lt;br /&gt;
&lt;br /&gt;
Output: &lt;strong&gt;temp_20111013&lt;/strong&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/114738687799121855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/renaming-file-and-append-it-with-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/114738687799121855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/114738687799121855'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/renaming-file-and-append-it-with-date.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-8418936299728727481</id><published>2011-10-13T06:49:00.000-07:00</published><updated>2011-10-13T06:49:20.814-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;u&gt;&lt;strong&gt;&lt;span style=&quot;color: red;&quot;&gt;FTP File Transfer&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
#! /usr/bin/ksh&lt;br /&gt;
ftp -v -n &quot;servername&quot; &amp;lt;&amp;lt; cmd&lt;br /&gt;
user &quot;username&quot; &quot;pwd&quot;&lt;br /&gt;
cd /stage_area/pm/sales/script&lt;br /&gt;
lcd /stage_area/pm/sales/script get loadCash_new &lt;br /&gt;
put loadCash_new &lt;br /&gt;
quit&lt;br /&gt;
cmd&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/8418936299728727481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/ftp-file-transfer-usrbinksh-ftp-v-n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8418936299728727481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/8418936299728727481'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/ftp-file-transfer-usrbinksh-ftp-v-n.html' title=''/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-302023182430735257</id><published>2011-10-12T06:14:00.000-07:00</published><updated>2011-10-12T06:14:52.247-07:00</updated><title type='text'>Create A Deployment Group In Informatica Power center</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;span style=&quot;color: red; font-family: Cambria; font-size: large;&quot;&gt;Create A Deployment Group In Informatica Power Center &lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;h2 style=&quot;margin: 12pt 0in 3pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Step 1. Create a label &lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In Informatica Power Repository Manager&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click on Versioning &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Labels &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; New &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Choose a name like INITXXXXXXX (depending on which INIT this label is for) and write a comment like “Due to Release 10.1”. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2 style=&quot;margin: 12pt 0in 3pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Step 2. Applying Labels to Objects&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In Informatica Power Center Designer. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Choose the object that you want to apply a label on. For example a mapping like m_LoadSalesDetail&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Right click on the mapping &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Versioning &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; View History &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Choose the mapping. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click on Tools &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Labels &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Apply Labels&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If there is a totally &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;new&lt;/b&gt; mapping/object you should choose both “Label all Children” and “Label all Parents” and if it´s only an &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;update&lt;/b&gt; of a current mapping you only choose “Label all Children”. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2 style=&quot;margin: 12pt 0in 3pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Step 3. Create a Deployment Group &lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You can create two types of deployment groups; &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Static&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #4f81bd; mso-themecolor: accent1;&quot;&gt; &lt;/span&gt;and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Dynamic.&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;Static&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt; – &lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-fareast-language: SV;&quot;&gt;You populate a static deployment group by manually selecting objects. Create a static deployment group if you do not expect the set of deployment objects to change. For example, you might group objects for deployment on a certain date and deploy all objects at once.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-fareast-language: SV;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Dynamic&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;.&lt;/span&gt; You use the result set from an object query to populate the deployment group. Create a dynamic deployment group if you expect the set of deployment objects to change frequently. For example, you can use a dynamic deployment group if you develop multiple objects to deploy on different schedules. You can run the dynamic deployment group query multiple times and add new objects to the group each time you run the query.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;color: red; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-fareast-language: SV;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Most commonly you choose to create a &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Static Deployment group.&lt;/b&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;To create a deployment group:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the Repository Manager, choose the first mapping. &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; mso-list: l0 level1 lfo1;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click Versioning &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Deployment &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Groups to view the existing deployment groups in the Deployment Group Browser.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;2. Click New to configure the deployment group in the Deployment Group Editor.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;3. Enter a name for the deployment group like INITXXXXXXX&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;4. Select whether to create a static or dynamic deployment group.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;5. If you are creating a dynamic deployment group, click Queries to select a query from the Query Browser, and then click Close to return to the Deployment Group Editor.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;6. Optionally, enter a comment for the deployment group for ex. Due to &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Release 10.1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;7. Click OK.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;After you create a deployment group, it appears in the Deployment Groups node in the Navigator of the Repository&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;margin: 12pt 0in 3pt;&quot;&gt;&lt;em&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US;&quot;&gt;Step 4. Add objects to the deployment group. &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/h2&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the Repository Manager&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Right-click an object you want to add to the deployment group. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click Versioning &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; View History &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Tools &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Add to Deployment group&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Choose the deployment group that you want to add the object to. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Loop this step until you have moved all objects that you want to have in the deployment group. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;mso-ansi-language: EN-US; mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If this was done for a release, don´t forget to update the release notes with the path and name of the deployment group that you have created. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/302023182430735257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/create-deployment-group-in-informatica.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/302023182430735257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/302023182430735257'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/create-deployment-group-in-informatica.html' title='Create A Deployment Group In Informatica Power center'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8373941034124210772.post-1743826540148888026</id><published>2011-10-11T03:57:00.000-07:00</published><updated>2011-10-11T04:02:01.338-07:00</updated><title type='text'>Important SQL Questions And Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;1) My boss has changed his mind. Now he doesn&#39;t want to pay more than 10,000.so revoke that salary constraint.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;alter table emp modify constraint chk_001 enable;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;2) Add column called as mgr to your emp table;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;alter table emp add(mgr number(5));&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;3) Oh! This column should be related to empno. Give a command to add this constraint.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;ALTER TABLE EMP ADD CONSTRAINT MGR_DEPT FOREIGN KEY(MGR) REFERENCES EMP(EMPNO)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;4) Add deptno column to your emp table;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;alter table emp add(deptno number(5));&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;5) This deptno column should be related to deptno column of dept table;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;alter table emp add constraint dept_001 foreign key(deptno) &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;reference dept(deptno) [deptno should be primary key]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;6) Give the command to add the constraint.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;alter table &amp;lt;table_name) add constraint &amp;lt;constraint_name&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&amp;lt;constraint type&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;7) Create table called as newemp. Using single command create this table as well as get data into this table(use create table as);&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;create table newemp as select * from emp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;Create table called as newemp. This table should contain only &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;empno,ename,dname.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;create table newemp as select empno,ename,dname from emp,dept where 1=2;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;8) Delete the rows of employees who are working in the company for more than 2 years.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;delete from emp where (sysdate-hiredate)/365&amp;gt;2;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;9) Provide a commission(10% Comm Of Sal) to employees who are not earning any commission.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select sal*0.1 from emp where comm is null&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;10) If any employee has commission his commission should be incremented by 10% of his salary.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;update emp set comm=sal*.1 where comm is not null;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;21) Display employee name and department name for each employee.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select empno,dname from emp,dept where emp.deptno=dept.deptno&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;22)Display employee number,name and location of the department in which he is working.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select empno,ename,loc,dname from emp,dept where emp.deptno=dept.deptno;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;23) Display ename,dname even if there are no employees working in a particular department(use outer join).&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select ename,dname from emp,dept where emp.deptno=dept.deptno(+)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;24) Display employee name and his manager name.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select p.ename,e.ename from emp e,emp p where e.empno=p.mgr;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;25) Display the department name and total number of employees in each department.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select dname,count(ename) from emp,dept where emp.deptno=dept.deptno group by dname;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;26)Display the department name along with total salary in each department.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select dname,sum(sal) from emp,dept where emp.deptno=dept.deptno group by dname;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;27) Display itemname and total sales amount for each item.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select itemname,sum(amount) from item group by itemname;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;28) Write a Query To Delete The Repeated Rows from emp table;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;Delete from emp where rowid not in(select min(rowid)from emp group by ename)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;29) TO DISPLAY 5 TO 7 ROWS FROM A TABLE&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;select ename from emp where rowid in(select rowid from emp where rownum&amp;lt;=7 minus select rowid from empi where rownum&amp;lt;5)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;30) DISPLAY TOP N ROWS FROM TABLE?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;SELECT * FROM (SELECT * FROM EMP ORDER BY ENAME DESC)WHERE ROWNUM &amp;lt;10;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;31) DISPLAY TOP 3 SALARIES FROM EMP;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;SELECT SAL FROM ( SELECT * FROM EMP ORDER BY SAL DESC ) WHERE ROWNUM &amp;lt;4&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;32) DISPLAY 9th FROM THE EMP TABLE?&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;SQL&amp;gt;SELECT ENAME FROM EMPWHERE ROWID=(SELECT ROWID FROM EMP WHERE ROWNUM&amp;lt;=10 MINUS SELECT ROWID FROM EMP WHERE ROWNUM &amp;lt;10)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;33) select second max salary from emp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 9pt;&quot;&gt;select max(sal) fromemp where sal&amp;lt;(select max(sal) from emp);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manthiramoorthy.blogspot.com/feeds/1743826540148888026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/how-to-select-second-max-salary-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/1743826540148888026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8373941034124210772/posts/default/1743826540148888026'/><link rel='alternate' type='text/html' href='http://manthiramoorthy.blogspot.com/2011/10/how-to-select-second-max-salary-from.html' title='Important SQL Questions And Answers'/><author><name>G Moorthy MCA</name><uri>http://www.blogger.com/profile/00422287980836591505</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlyDt9F724G7lEh-ZjVW2ATik1YB-emHi1SdCBc47D9xXvxLyh3M73qKMn7fPq1-PGz_MP51H1_IONkXXgmuMf3E36FQrCZXwWYRrtM3IKlrpvelMhTLaj996Px8eWqQ/s220/3.JPG'/></author><thr:total>0</thr:total></entry></feed>