| 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  |
| 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  |
| Swati |
| |
| |
| Answer | select e.*,decode(comm,null,0,-10) new_comm
from emp e  |
| Shaik |
| |
| |
|
|
| |
| Answer | select nvl2(comm,0,-10) "New Comm" from employees;  |
| S.rajeshkumar |
| |
| |
| Answer | select case when comm is null then 0 else -10 end from emp  |
| 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  |
| Swati |
| |
| |
| Answer | select substr(ename,-5) from emp  |
| 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.  |
| 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  |
| Subbareddy |
| |
| |
|
| |
|
Back to Questions Page |