Answer Posted / sreekumar
A scalar query returns exactly one column value from one row.
If it returns 0 rows, then the value scalar query is NULL. If returns more than one row, then Oracle returns an error.
eg.
select first_name, last_name,
(select job_title
from jobs
where employees.job_id = jobs.job_id) job_title
from employees
where rownum < 5;
Note :Use this method only as your last option in the coding..:) performance wise this is bad.
-Sreekumar
Oracle 10g DBA
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is informix sql?
What steps server process has to take to execute an update statement?
What is the difference between clustered and non-clustered indexes?
What is exit statement?
List the different type of joins?
Describe types of sql statements?
How to select unique records from a table?
State some properties of relational databases?
how to enter characters as hex numbers? : Sql dba
What is the most common sql injection tool?
What is percent sign in sql?
Is sqlite free?
Can we insert data into materialized view?
Is full outer join same as cross join?
How many sql statements are used? Define them.