what is SCALAR Queries?

Answers were Sorted based on User's Feedback



what is SCALAR Queries?..

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

what is SCALAR Queries?..

Answer / tannu

Irrespective of the case, scalar query is one which always
fetch same result

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What are the parts of a basic sql query?

0 Answers  


What are stored procedures in mysql?

0 Answers  


How to create a menu in sqlplus or pl/sql?

0 Answers  


What is trigger explain with example?

0 Answers  


Explain about various levels of constraint.

0 Answers  






What is $$ in sql?

0 Answers  


How do I filter in sql profiler?

0 Answers  


what is oracle database ? : Sql dba

0 Answers  


Mention what are the benefits of pl/sql packages?

0 Answers  


Does mysql support pl sql?

0 Answers  


What are the Restrictions on Cursor Variables?

2 Answers  


What are the key differences between SQL and PL SQL?

0 Answers  


Categories