<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Technical Interview Questions &#187; Interview Questions on DBA</title>
	<atom:link href="http://www.technicalinterview.info/category/interview-questions-on-dba/feed" rel="self" type="application/rss+xml" />
	<link>http://www.technicalinterview.info</link>
	<description>Java Interview Questions &#124; IT interview questions &#124; Software Testing Interview questions &#124; .Net Interview Questions &#124; Job Interview Questions &#38; Answers &#124; Tough Interview Questions &#124; Technology Interview Questions &#124; Tech Interview Questions &#124; Testing Interview Questions &#124; SAP Interview Questions &#124; ABAP Interview Questions &#124; Data Warehousing Interview Questions</description>
	<pubDate>Tue, 02 Sep 2008 08:33:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Interview Questions on DBA</title>
		<link>http://www.technicalinterview.info/interview-questions-on-dba/</link>
		<comments>http://www.technicalinterview.info/interview-questions-on-dba/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 10:48:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Interview Questions on DBA]]></category>

		<category><![CDATA[DBA Interview Questions]]></category>

		<category><![CDATA[Interview Questions on SQL]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/interview-questions-on-dba/</guid>
		<description><![CDATA[There is a string &#8216;120000 12 0 .125&#8242; ,how you will find the position of the decimal place
INSTR(&#8217;120000 12 0 .125&#8242;,1,&#8217;.') output 13
There is a &#8216;%&#8217; sign in one field of a column. What will be the query to find it.
&#8216;\&#8217; Should be used before &#8216;%&#8217;.
When you use WHERE clause and when you use HAVING [...]]]></description>
			<content:encoded><![CDATA[<p><strong>There is a string &#8216;120000 12 0 .125&#8242; ,how you will find the position of the decimal place</strong></p>
<p>INSTR(&#8217;120000 12 0 .125&#8242;,1,&#8217;.') output 13</p>
<p><strong>There is a &#8216;%&#8217; sign in one field of a column. What will be the query to find it.</strong></p>
<p>&#8216;\&#8217; Should be used before &#8216;%&#8217;.</p>
<p><strong>When you use WHERE clause and when you use HAVING clause</strong></p>
<p>HAVING clause is used when you want to specify a condition for a group function and it is written after GROUP BY clause The WHERE clause is used when you want to specify a condition for columns, single row functions except group functions and it is written before GROUP BY clause if it is used.</p>
<p><strong>Which is more faster - IN or EXISTS</strong></p>
<p>EXISTS is more faster than IN because EXISTS returns a Boolean value whereas IN returns a value.</p>
<p><strong>What is a OUTER JOIN</strong></p>
<p>Outer Join&#8211;Its a join condition used where you can query all the rows of one of the tables in the join condition even though they dont satisfy the join condition.</p>
<p><strong>How you will avoid your query from using indexes</strong></p>
<p>SELECT * FROM emp Where emp_no+&#8217; &#8216;=12345; i.e you have to concatenate the column name with space within codes in the where condition. SELECT /*+ FULL(a) */ ename, emp_no from emp where emp_no=1234; i.e using HINTS</p>
<p><strong>What is a pseudo column. Give some examples</strong></p>
<p>It is a column that is not an actual column in the table. eg USER, UID, SYSDATE, ROWNUM, ROWID, NULL, AND LEVEL. Suppose customer table is there having different columns like customer no, payments.What will be the query to select top three max payments. SELECT customer_no, payments from customer C1 WHERE 3&lt;=(SELECT COUNT(*) from customer C2 WHERE C1.payment &lt;= C2.payment)</p>
<p><strong>What is the purpose of a cluster.</strong></p>
<p>Oracle does not allow a user to specifically locate tables, since that is a part of the function of the RDBMS. However, for the purpose of increasing performance, oracle allows a developer to create a CLUSTER. A CLUSTER provides a means for storing data from different tables together for faster retrieval than if the table placement were left to the RDBMS.</p>
<p><strong>What is a cursor.</strong></p>
<p>Oracle uses work area to execute SQL statements and store processing information PL/SQL construct called a cursor lets you name a work area and access its stored information A cursor is a mechanism used to fetch more than one row in a Pl/SQl block.</p>
<p><strong>Difference between an implicit &amp; an explicit cursor.</strong></p>
<p>PL/SQL declares a cursor implicitly for all SQL data manipulation statements, including quries that return only one row. However,queries that return more than one row you must declare an explicit cursor or use a cursor FOR loop.</p>
<p>Explicit cursor is a cursor in which the cursor name is explicitly assigned to a SELECT statement via the CURSOR&#8230;IS statement. An implicit cursor is used for all SQL statements Declare, Open, Fetch, Close. An explicit cursors are used to process multirow SELECT statements An implicit cursor is used to process INSERT, UPDATE, DELETE and single row SELECT. .INTO statements.</p>
<p><strong>What are cursor attributes</strong></p>
<p>%ROWCOUNT<br />
%NOTFOUND<br />
%FOUND<br />
%ISOPEN</p>
<p><strong>What is a cursor for loop.</strong></p>
<p>Cursor For Loop is a loop where oracle implicitly declares a loop variable, the loop index that of the same record type as the cursor&#8217;s record.</p>
<p><strong>Difference between NO DATA FOUND and %NOTFOUND</strong></p>
<p>NO DATA FOUND is an exception raised only for the SELECT&#8230;.INTO statements when the where clause of the querydoes not match any rows. When the where clause of the explicit cursor does not match any rows the %NOTFOUND attribute is set to TRUE instead.</p>
<p><strong>What a SELECT FOR UPDATE cursor represent.</strong></p>
<p>SELECT&#8230;&#8230;FROM&#8230;&#8230;FOR&#8230;&#8230;UPDATE[OF column-reference][NOWAIT] The processing done in a fetch loop modifies the rows that have been retrieved by the cursor. A convenient way of modifying the rows is done by a method with two parts: the FOR UPDATE clause in the cursor declaration, WHERE CURRENT OF CLAUSE in an UPDATE or declaration statement.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/interview-questions-on-dba/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
