<?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; Tough Oracle Interview Questions</title>
	<atom:link href="http://www.technicalinterview.info/category/tough-oracle-interview-questions/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>Tough Oracle Interview Questions</title>
		<link>http://www.technicalinterview.info/tough-oracle-interview-questions/</link>
		<comments>http://www.technicalinterview.info/tough-oracle-interview-questions/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 10:41:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tough Oracle Interview Questions]]></category>

		<category><![CDATA[Oracle Basics Interview Questions]]></category>

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

		<guid isPermaLink="false">http://www.technicalinterview.info/tough-oracle-interview-questions/</guid>
		<description><![CDATA[What is a CO-RELATED SUBQUERY
A CO-RELATED SUBQUERY is one that has a correlation name as table or view designator in the FROM clause of the outer query and the same correlation name as a qualifier of a search condition in the WHERE clause of the subquery.
2. eg
3. SELECT field1 from table1 X
4. WHERE field2>(select avg(field2) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is a CO-RELATED SUBQUERY</strong></p>
<p>A CO-RELATED SUBQUERY is one that has a correlation name as table or view designator in the FROM clause of the outer query and the same correlation name as a qualifier of a search condition in the WHERE clause of the subquery.<br />
2. eg<br />
3. SELECT field1 from table1 X<br />
4. WHERE field2>(select avg(field2) from table1 Y<br />
5. where<br />
field1=X.field1);<br />
(The subquery in a correlated subquery is revaluated for every row of the table or view named in the outer query.)</p>
<p><strong>What are various joins used while writing SUBQUERIES</strong></p>
<p>Self join-Its a join foreign key of a table references the same table.<br />
Outer Join&#8211;Its a join condition used where One can query all the rows of one of the tables in the join condition even though they don&#8217;t satisfy the join condition.<br />
Equi-join&#8211;Its a join condition that retrieves rows from one or more tables in which one or more columns in one table are equal to one or more columns in the second table.</p>
<p><strong>What are various constraints used in SQL</strong></p>
<p>NULL<br />
NOT NULL<br />
CHECK<br />
DEFAULT</p>
<p><strong>What are different Oracle database objects</strong></p>
<p>TABLES<br />
VIEWS<br />
INDEXES<br />
SYNONYMS<br />
SEQUENCES<br />
TABLESPACES etc</p>
<p><strong>What is difference between Rename and Alias</strong></p>
<p>Rename is a permanent name given to a table or column whereas Alias is a temporary name given to a table or column which do not exist once the SQL statement is executed.</p>
<p><strong>What is a view</strong></p>
<p>A view is stored procedure based on one or more tables, its a virtual table.</p>
<p><strong>What are various privileges that a user can grant to another user</strong></p>
<p>SELECT<br />
CONNECT<br />
RESOURCE</p>
<p><strong>What is difference between UNIQUE and PRIMARY KEY constraints</strong></p>
<p>A table can have only one PRIMARY KEY whereas there can be any number of UNIQUE keys. The columns that compose PK are automatically define NOT NULL, whereas a column that compose a UNIQUE is not automatically defined to be mandatory must also specify the column is NOT NULL.</p>
<p><strong>Can a primary key contain more than one columns</strong></p>
<p>Yes</p>
<p><strong>How you will avoid duplicating records in a query</strong></p>
<p>By using DISTINCT</p>
<p><strong>What is difference between SQL and SQL*PLUS</strong></p>
<p>SQL*PLUS is a command line tool where as SQL and PL/SQL language interface and reporting tool. Its a command line tool that allows user to type SQL commands to be executed directly against an Oracle database. SQL is a language used to query the relational database(DML,DCL,DDL). SQL*PLUS commands are used to format query result, Set options, Edit SQL commands and PL/SQL.</p>
<p><strong>Which datatype is used for storing graphics and images</strong></p>
<p>LONG RAW data type is used for storing BLOB&#8217;s (binary large objects).</p>
<p><strong>How will you delete duplicating rows from a base table</strong></p>
<p>DELETE FROM table_name A WHERE rowid>(SELECT min(rowid) from table_name B where B.table_no=A.table_no);<br />
CREATE TABLE new_table AS SELECT DISTINCT * FROM old_table;<br />
DROP old_table RENAME new_table TO old_table DELETE FROM table_name A WHERE rowid NOT IN (SELECT MAX(ROWID) FROM table_name GROUP BY column_name)</p>
<p><strong>What is difference between SUBSTR and INSTR</strong></p>
<p>SUBSTR returns a specified portion of a string eg SUBSTR(&#8217;BCDEF&#8217;,4) output BCDE INSTR provides character position in which a pattern is found in a string. eg INSTR(&#8217;ABC-DC-F&#8217;,'-&#8217;,2) output 7 (2nd occurence of &#8216;-&#8217; )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/tough-oracle-interview-questions/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
