ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories >> Software >> Databases >> Oracle >> Oracle-AllOther
 
 


 

Back to Questions Page
 
Question
How to find 8th person record in a table?
Plz mail ur answers to 
mak2786@gmail.com

Regards
Arun
Rank Answer Posted By  
 Question Submitted By :: Mak2786
I also faced this Question!!   © ALL Interview .com
Answer
retrieving 8th record from emp table in scott instance

select * from emp where rownum<=8
minus
select * from emp where rownum<=7
 
0
Chaitanya.s
 
 
Question
i am having comm in emp table and i want to display 0 when 
comm =null and -10 if comm= value
Rank Answer Posted By  
 Question Submitted By :: Malli
This Interview Question Asked @   IBM
I also faced this Question!!   © ALL Interview .com
Answer
update emp set comm = 
case 
when comm is null then 0
else
10
end
 
0
Swati
 
 
Answer
select e.*,decode(comm,null,0,-10) new_comm
from emp e
 
0
Shaik
 
 
 
Answer
select nvl2(comm,0,-10) "New Comm" from employees;
 
0
S.rajeshkumar
 
 
Answer
select case when comm is null then 0 else -10 end from emp
 
0
Prajakta
 
 
Question
how to display last 5 letters from a name (take emp table 
ename )
Rank Answer Posted By  
 Question Submitted By :: Malli
This Interview Question Asked @   IBM
I also faced this Question!!   © ALL Interview .com
Answer
select right(ename,5) as name from emp
 
0
Swati
 
 
Answer
select substr(ename,-5) from emp
 
2
Aparna
 
 
Question
deference between & and &&
Rank Answer Posted By  
 Question Submitted By :: Amar_kondla
This Interview Question Asked @   Mphasis
I also faced this Question!!   © ALL Interview .com
Answer
Both of these are substitution variable adn difference 
between & and &&:

&--->the variable prefixed with an ampersand (&) to
prompt the user for a value.

eg:
SELECT employee_id, last_name, salary, department_id
FROM employees
WHERE employee_id = &employee_num ;

It should prompt the user to enter a value for employee_num


&&--->Mainly we used the  double-ampersand (&&) if you want 
to reuse the variable value without prompting the user each
time.

eg:SELECT employee_id, last_name, job_id, &&column_name
FROM employees
ORDER BY &column_name;

Here the user is asked to give the value for variable 
column_name only once. The
value supplied by the user (department_id) is used both for 
display and ordering of data.
 
0
Esakkiraja
 
 
Question
pl help me, i want oracle HRMS training institute 
address,in chennai
Rank Answer Posted By  
 Question Submitted By :: S_raja_hsr
I also faced this Question!!   © ALL Interview .com
Answer
In Bangalore A1 Technology
 
0
Subbareddy
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com