what is SCALAR Queries?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / tannu
Irrespective of the case, scalar query is one which always
fetch same result
Is This Answer Correct ? | 0 Yes | 0 No |
What are the parts of a basic sql query?
What are stored procedures in mysql?
How to create a menu in sqlplus or pl/sql?
What is trigger explain with example?
Explain about various levels of constraint.
What is $$ in sql?
How do I filter in sql profiler?
what is oracle database ? : Sql dba
Mention what are the benefits of pl/sql packages?
Does mysql support pl sql?
What are the Restrictions on Cursor Variables?
What are the key differences between SQL and PL SQL?