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 forced views
what is 'mysqlcheck'? : Sql dba
What is blind sql injection?
if we give update table_name set column_name= default. what will happen? its given in pl sql block.what will hapen?
How to find string or key value using pl/sql code?
what is outer join? what is selef join? what is difference between them? what is cartecion join?
1 Answers Fiserv, Herbinger, Synechron,
what is difference between delete and truncate commands? : Sql dba
What is package in pl sql with an examples?
What is pl sql collection?
Can we join more than 2 tables in sql?
Can cursors be part of a trigger body?
Compare SQL and PL/SQL.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)