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 |
How to use transactions efficiently : transact sql
What is the least restrictive isolation level? : Transact sql
Define concurrency control. : Transact sql
Is primary key an index?
Does sql require a server?
How delete a row in sql?
What are the properties of a transaction?
How many unique keys can a table have?
What are pl/sql cursors?
how does a local variable is defined using t-sql? : Transact sql
What is pl/sql table? Why it is used?
Can we rollback after truncate?